Results 1 to 2 of 2
  1. #1
    yaminisankar is offline Member
    Join Date
    Jul 2009
    Rep Power

    Default how to add a scrollpane to Jframe

    i designed a sample application with variety of controls like textfield,labels etc.
    Now I want to add scrollbar. How should I do it in swings?

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Hong Kong
    Rep Power


    is your scrollpane means JScrollPane?

    i think jscrollpane is similar to jpanel, just add jscrollpane to jframe is ok

    go google and search jscrollpane
    click How to Use Scroll Panes (The Java™ Tutorials > Creating a GUI with...
    Last edited by mtyoung; 07-09-2009 at 10:00 AM.

Similar Threads

  1. Replies: 4
    Last Post: 04-22-2009, 11:02 PM
  2. Replies: 8
    Last Post: 01-13-2009, 10:30 AM
  3. ScrollPane Issues..
    By hanifa in forum AWT / Swing
    Replies: 4
    Last Post: 09-11-2008, 08:18 AM
  4. scrollpane
    By Newb in forum AWT / Swing
    Replies: 0
    Last Post: 06-09-2008, 12:14 AM
  5. Tree with Listener not working when added to ScrollPane
    By praveen.kb in forum AWT / Swing
    Replies: 2
    Last Post: 01-09-2008, 07:06 AM

Posting Permissions

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