Results 1 to 5 of 5
  1. #1
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    7

    Post Adding Jpanel ontop of another Jpanel

    Hi guyz,
    Am trying to add a panel on top of another on clicking a button but it doesn't appear. What could be the problem?? could it be something to do with Layouts??

    Your replies will be highly appreciated
    cheerz!!:cool:
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

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

  3. #3
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    7

    Post

    Quote Originally Posted by Fubarable View Post
    It could have something to do with layouts, but tough to say given the limited information at our disposal.
    Well, am using netbeans and i find it not so good with swings.
    I have a JFrame set to Freedesign layout and has empty panel. My idea is to add another panel on top of the existing one upon clicking a button.
    I hope am a bit clear now.

    Thanks for your responce:)
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

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

    Default

    I do not use NetBeans for creating GUI's so cannot offer direct help for your problem, but I do think that you can change the layout of the containers with NetBeans from free design to a more appropriate layout manager. If you are not yet familiar with the various layout managers available, then I recommend you have a look at the Oracle Swing tutorial section on this.

  5. #5
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    7

    Thumbs up

    Quote Originally Posted by Fubarable View Post
    I do not use NetBeans for creating GUI's so cannot offer direct help for your problem, but I do think that you can change the layout of the containers with NetBeans from free design to a more appropriate layout manager. If you are not yet familiar with the various layout managers available, then I recommend you have a look at the Oracle Swing tutorial section on this.
    Came to realize it was a layout problem and i got it solved.
    Thanks for your replies
    cheerz!!:)
    We Learn Through Mistakes..,
    Manfizy:rolleyes:

Similar Threads

  1. adding integer to the JPanel
    By navid in forum New To Java
    Replies: 2
    Last Post: 12-18-2010, 05:26 PM
  2. adding a buffered image over a jpanel
    By fatmat9 in forum New To Java
    Replies: 1
    Last Post: 11-23-2010, 04:23 AM
  3. Having difficulty adding graphics to a JPanel
    By DrKilljoy in forum New To Java
    Replies: 20
    Last Post: 07-20-2010, 09:40 PM
  4. Problem on adding JButton on JPanel NEED HELP
    By boisk in forum AWT / Swing
    Replies: 15
    Last Post: 03-15-2009, 03:27 PM
  5. adding a jpanel in the middle of the script
    By 2o2 in forum AWT / Swing
    Replies: 11
    Last Post: 10-12-2008, 06:50 PM

Posting Permissions

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