1. How to create a horizontal JList? coderanch.com |
2. need help to set horizontal bar to JList coderanch.comDo you want me to post whole code? import javax.swing.DefaultListModel; import javax.swing.JFrame; import javax.swing.JList; import javax.swing.JScrollPane; import javax.swing.ScrollPaneConstants; public class ListDisplay extends JFrame{ JList lstCrime; private DefaultListModel listModel; public ListDisplay(){ GUIDisplay(); } public void GUIDisplay(){ String [] strCrime={"My name is Vaishali","My name is Rajiv","My name is Khushi","My name is Vaishali","My name is Rajiv","My name is Khushi"}; listModel=new DefaultListModel(); for( int i ... |