Results 1 to 4 of 4

Thread: Frame problem

  1. #1
    nikunj is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default Frame problem

    Hi,
    I hope You all used microsoft calculator i Windows Vista or Windows 7. When You click on "view" option in menu bar and under worksheets when you click any option, the Frame expands.
    I want to know that will i able to do that with java. If yes, please suggest how will i do it.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    One way is to add or remove JPanels, but remembering to call revalidate and repaint on the containing JPanel. For an example of this, please have a look here: Calculator Switching

  3. #3
    nikunj is offline Member
    Join Date
    Aug 2010
    Posts
    7
    Rep Power
    0

    Default

    Thank You Fubarable
    It was really helpful.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. No frame?
    By Lars1111 in forum Java Applets
    Replies: 3
    Last Post: 04-16-2010, 02:47 AM
  2. Full Screen Frame Resolution Problem
    By Krooger in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2009, 11:05 PM
  3. Problem with JEditor Pane while resizing the frame
    By sidharth in forum SWT / JFace
    Replies: 5
    Last Post: 11-13-2009, 05:43 AM
  4. Replies: 7
    Last Post: 11-02-2009, 06:31 PM
  5. Replies: 7
    Last Post: 07-09-2008, 12:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •