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.
posted 10 years ago
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.
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF