Results 1 to 2 of 2
- 10-12-2010, 04:56 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 1
- Rep Power
- 0
add scrollbar in JFrame with null Layout
I am using following code to create a frame. I want to add scrollbar on it.
jobConfFrame=new JFrame("Resource Configuration Panel");
jobConfFrame.setLocationRelativeTo(null);
jobConfFrame.setDefaultCloseOperation(jobConfFrame .DISPOSE_ON_CLOSE);
jobConfFrame.setSize(400,400);
jobConfFrame.setResizable(false);
jobConfFrame.setVisible(true);
jobConfFrame.getContentPane().setLayout(null);
I tried to add a scrollbar, but for some reason it was not visible on the frame (may be for the null layout). If you have any idea to solve the problem, please send the solution.
- 10-12-2010, 09:53 AM #2
Similar Threads
-
JFrame Layout
By ŖàΫ ỏƒ Ңόρę in forum New To JavaReplies: 16Last Post: 06-16-2010, 01:48 AM -
Edit layout Layout please help me
By manhtungtnk28@gmail.com in forum New To JavaReplies: 4Last Post: 11-23-2009, 08:41 AM -
[SOLVED] JFrame Layout
By AndrewM16921 in forum New To JavaReplies: 4Last Post: 04-09-2009, 01:11 AM -
how to add scrollbar in netbeans
By kumar_gemi in forum NetBeansReplies: 1Last Post: 03-12-2009, 06:50 PM -
Using java.awt.Scrollbar
By Java Tip in forum Java TipReplies: 0Last Post: 01-03-2008, 09:19 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks