Results 1 to 2 of 2
  1. #1
    elenora is offline Member
    Join Date
    Apr 2011
    Posts
    30
    Rep Power
    0

    Unhappy How to create scrollbar in Java

    Hi,
    I run my application in netbeans IDE, and I want to create a scrollbar page which contains 3 textFields and near each textfield, there is a button to save the text, I want that if the user clicks on the last button, another textField and a button for saving itís text being shown on the scrollbar page,Ö! Now my problem is How can I create this Scrollbar page, I have searched about How to create a scrollbar in Netbeans but there wasnít any source code for netbeans! I appreciate if anyone tell me How Can I create it or show me a source code!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    JScrollPane tutorial.
    Read the whole thing, but you'll want to pay attention to the bit about dynamically sizing the client (that is the underlying component).

    By the way, you are developing your app in Netbeans. Unless you are using the GUI builder (which is a bad idea if you;re not well-versed in Swing and the GUI builder) there is nothing about Netbeans that makes your app Netbeans-specific.

Similar Threads

  1. How to update the scrollbar?
    By Martino in forum Java 2D
    Replies: 3
    Last Post: 06-08-2011, 07:09 PM
  2. Custom scrollbar possible?
    By FatWhale in forum AWT / Swing
    Replies: 2
    Last Post: 03-19-2011, 03:37 PM
  3. JList with ScrollBar
    By Psyclone in forum AWT / Swing
    Replies: 5
    Last Post: 02-12-2010, 05:02 AM
  4. scrollbar issue
    By kumar_gemi in forum NetBeans
    Replies: 1
    Last Post: 05-03-2009, 11:23 PM
  5. Using java.awt.Scrollbar
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-03-2008, 10:19 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
  •