Results 1 to 4 of 4
  1. #1
    poorav is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Remove setting for bounds for the pane and jscrollpane

    Hi,

    In my application I have a JPanel, inside a JScrollPane. The layout of the panel is set to null. I am using netbeans for my GUI development. Netbeans is adding the panel.setBounds and scrollPane.setBounds method in the code, I don't want set this property. Since the panel is the container for all other controls, by not setting the panel and scrollpane size and location property, it should automatically align itself to the frame. How can i remove this call from the code. It is part of the auto generated code and this is messing up with the desired behaviour.

    I would appreciate your help on this.

    Thanks

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

    Default Re: Remove setting for bounds for the pane and jscrollpane

    It is for these and many more reasons, I avoid using code-generation software. Sorry, had to say that.

  3. #3
    poorav is offline Member
    Join Date
    Mar 2012
    Posts
    3
    Rep Power
    0

    Default Re: Remove setting for bounds for the pane and jscrollpane

    Quote Originally Posted by Fubarable View Post
    It is for these and many more reasons, I avoid using code-generation software. Sorry, had to say that.
    I am glad you got that off your chest!

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

    Default Re: Remove setting for bounds for the pane and jscrollpane

    Quote Originally Posted by poorav View Post
    I am glad you got that off your chest!
    Yeah, me too,... sigh, but sorry it didn't help you. Please keep on slogging!

Similar Threads

  1. Controls on a tabbed pane
    By taman in forum New To Java
    Replies: 2
    Last Post: 03-03-2012, 02:52 AM
  2. Tabbed pane
    By sonal12 in forum AWT / Swing
    Replies: 13
    Last Post: 09-15-2010, 01:22 AM
  3. tabbed Pane .
    By programmer_007 in forum AWT / Swing
    Replies: 2
    Last Post: 09-03-2009, 09:52 PM
  4. i want to remove JScrollPane from panel
    By ravrajesh.ap in forum AWT / Swing
    Replies: 1
    Last Post: 01-03-2009, 05:49 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
  •