Reputation: 1777
I am trying to make a desktop application in netbeans. The GUI form that i have made, is longer than the size of the desktop screen, so the contents in the lower parts are not visible. Please help me to get ride of this problem.Here I'm pasting the picture.
Upvotes: 0
Views: 1072
Reputation: 2224
The solution described by org.life.java says it all. I am just elaborating that solution and adding one more option to try:
There could be three ways to achieve a usable window in this case:
with regards
Tushar Joshi, Nagpur
UPDATE:
After implementing the first point in my suggestions I created a JPanel through NetBeans IDE and named it ComponentsPanel. Then I created a JFrame and added one JScrollPane and JButton to that frame. I also added ComponentsPanel earlier created with all the text fields into the JScrollPane. The result looks like as follows:
After scrolling the scroll pane the window will look like as below:
Upvotes: 1
Reputation: 240996
Either you can adjust your components to fit in size or you can use scroll pane as base component and put all components on it so there will be a scroll bar
Upvotes: 4