• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Application  RSS feed

 
Abhishek Reddy
Ranch Hand
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a JFrame and set its layout to null..also added three panels with layouts set to null and added few components to each of the layout.I have done this in Eclipse IDE and when i run the application the window displayed perfectly and the panels are fixed in their respective positions. I want this application to be flexible i.e. when i drag the window the panel positions must set automatically w.r.t to the window and it s respective components.

Tell me how can i achieve this.
 
Prabu Shanmugam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do use any layout instead of 'NULL LAYOUT' then it`ll take care of positioning. Also do take a look at Netbeans for creating a swing application its very easy to create one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!