Results 1 to 4 of 4

Thread: Setting up a JScrollPane ?

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Setting up a JScrollPane ?

    Im trying to create a JScrollPane that contains a JList which is populated with entries which are just Strings. For some reason i get nothing visually at all. When i set the JScrollPane to use scrollbars all of the time what is the default size of the JScrollPane?

    Code:
    public GUI(){
    JScrollPane jsp = new JScrollPane();
      jsp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); 
      jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    }

Posting Permissions

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



Click Here to Expand Forum to Full Width