Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jason Perry   on Jan 05 In Java Category.

  
Question Answered By: Emma Brown   on Jan 05

you could use this sample for your JList :


jt = new JTree(top);
int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
JScrollPane jsp = new JScrollPane(jt, v, h);
panel.add(jsp, BorderLayout.CENTER);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on moveing two JList using one JScorllpane Or get search suggestion and latest updates.


Tagged: