Results 1 to 2 of 2
  1. #1
    Soda is offline Member
    Join Date
    Dec 2007
    Posts
    15
    Rep Power
    0

    Default Is there somethign wrong with this code?

    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);
    My goal is to add a scrollpane to the textarea but it wont appear....any tips?

  2. #2
    Soda is offline Member
    Join Date
    Dec 2007
    Posts
    15
    Rep Power
    0

    Default

    Um..ignore this topic, finally solve it. Sorry if I did something unnecessary

Similar Threads

  1. I am Doing Something Wrong But Don't Know What?
    By BHCluster in forum New To Java
    Replies: 3
    Last Post: 04-16-2008, 01:16 PM
  2. what is wrong with this code
    By masaka in forum New To Java
    Replies: 5
    Last Post: 04-16-2008, 08:27 AM
  3. Image problems, what's wrong here.
    By Bluefox815 in forum Java Applets
    Replies: 1
    Last Post: 03-07-2008, 02:45 AM
  4. What's wrong with this code?
    By Wizard wusa in forum New To Java
    Replies: 14
    Last Post: 01-22-2008, 11:55 PM
  5. Whats wrong with my code???
    By Soda in forum New To Java
    Replies: 2
    Last Post: 12-06-2007, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •