Results 1 to 2 of 2
- 12-08-2007, 12:04 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 15
- Rep Power
- 0
Is there somethign wrong with this code?
My goal is to add a scrollpane to the textarea but it wont appear....any tips?JFrame frame = new JFrame(500,500);
JPanel panel = new JPanel();
pane.setLayout(null);
JTextArea textarea = new JTextArea();
JScrollPane scrollpane = new JScrollPane();
scrollpane.setViewportView(textarea);
frame.add(panel);
panel.add(scrollpane);
scrollpane.setBounds(200,200,30,100);
- 12-08-2007, 04:46 PM #2
Member
- Join Date
- Dec 2007
- Posts
- 15
- Rep Power
- 0
Similar Threads
-
I am Doing Something Wrong But Don't Know What?
By BHCluster in forum New To JavaReplies: 3Last Post: 04-16-2008, 01:16 PM -
what is wrong with this code
By masaka in forum New To JavaReplies: 5Last Post: 04-16-2008, 08:27 AM -
Image problems, what's wrong here.
By Bluefox815 in forum Java AppletsReplies: 1Last Post: 03-07-2008, 02:45 AM -
What's wrong with this code?
By Wizard wusa in forum New To JavaReplies: 14Last Post: 01-22-2008, 11:55 PM -
Whats wrong with my code???
By Soda in forum New To JavaReplies: 2Last Post: 12-06-2007, 12:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks