1. Example 2 Jlists in a JDialog coderanch.comHere's something I put together quickly that should give you the basic idea: import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.*; public class JListTest extends JFrame { JList list1, list2; Vector v1; /** * Description */ public JListTest() { super(); v1 = new Vector(); v1.add( "Item1" ); v1.add( "Item2" ); v1.add( "Item3" ); list1 = new JList( v1 ); list2 = ... |
2. Jlist in a JDialog losing focus coderanch.comI have a Jlist within a JDialig. The first time it is opened I am able to scroll through the entries in the Jlist with the arrow keys. Subsequent times, I have to press the tab key before I can scroll. This is a real pain. Does anyone know what I need to do to correct this? |
3. Diable JList in JDialog at runtime java-forums.orgHi, I am facing a problem with JDialog. I have a JDialog(Modal) which have some panels and controls like- JList, JTextField, JButton etc. I have two JList one is LstCategory and second is lstSubcategory. If the user select a category and that is valid, lstSubcategory will fill with some options. But if the category is not valid, lstSubcategory will be disabled. ... |