Results 1 to 4 of 4
  1. #1
    anand206 is offline Member
    Join Date
    Mar 2010
    Rep Power

    Unhappy Problem while using the multiple panels in swings

    I am using a JTree, tabbedpane, text area, and Jtable. I am trying to dynamically update the text in text area and even the table in the JTable when ever I am selecting a node. But when I click on a node, every Item in the Window is getting sized to the size of Jtable. :(:confused:.

    So I need help in this regard. I want the table and text area to be updated dynamically without changing the size of other Items.

    Another problem is whenever I am minimizing and restoring the window of swing, The Items in window are getting resized to small ones. :confused:

    Please!!!!!!Please!!!!!!!!!!Some one Help ME...:mad:

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Quote Originally Posted by Darryl.Burke View Post
    Learn to use a layout manager.
    Seconded! !

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Look at Sun's Java Tutorial, in the Swing section. I use the GridBagLayout. It is complex at first, but it allows complete control over the layout once you get the hang of it. Tip: use JLabel with no text as "fillers" to control sizing.

Similar Threads

  1. problem with streams and swings
    By sandeepsai17 in forum New To Java
    Replies: 14
    Last Post: 07-21-2009, 07:23 PM
  2. Multiple Panels in JFrame or JPanel
    By DavidG24 in forum AWT / Swing
    Replies: 5
    Last Post: 05-16-2009, 01:47 PM
  3. How to use multiple timer classes in swings
    By theone3nu in forum AWT / Swing
    Replies: 12
    Last Post: 12-30-2008, 03:30 AM
  4. Replies: 6
    Last Post: 07-28-2008, 07:04 PM
  5. Replies: 7
    Last Post: 07-09-2008, 01:06 AM

Tags for this Thread

Posting Permissions

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