The Artima Developer Community
Sponsored Link

Java Answers Forum
Q: DoublingWindow

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
chomimi

Posts: 1
Nickname: chomimi
Registered: Sep, 2002

Q: DoublingWindow Posted: Sep 23, 2002 3:30 PM
Reply to this message Reply
Advertisement
How I can make a subclass of JFrame that can double in size. Has these additional methods:
doubleSize(): double this window's size (both height and width).
and
ResizingWindow: a subclass of JFrame that can be resized in several different ways. Has these additional methods:
setSizeToLocation(): set this window's width to this window's X coordinate, and set this window's height to this window's Y coordinate.
enlarge(int dW, int dH): add dW to this window's width, and add dH to this window's height.
swapOrientation(): set this window's width to the height and the height to the width.
int getArea(): return this window's area (width times height).
I am doing but many difficuty....
Help me..

Topic: Reading Text Files Previous Topic   Next Topic Topic: JTable problem

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use