Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

panel sizing problem

 
neelam aggarwal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys....... in net beans ,,,the size of the panel automatically enlarges ... i tried many times to reduce the size then save it but again it displays enlarged form ....... what i do........... also the size of preview window enlarges automatically....... what's the error.. do i need to make some of the properties to change.. if so which one.......please help
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where do you add the Panel to? what is the layout of the parent? I think the parent to which you add the panel is set with BorderLayout and by default the panel will be added to the 'CENTER' which will occupy maximum space available...
 
Nam Ha
Ranch Hand
Posts: 50
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to use:

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!