1. Showing JList in a JPanel java-forums.orgpublic class Resultat extends JPanel{ private static final long serialVersionUID = 1L; private JList resultatListe; public Resultat(ArrayList |
2. JList and JPanels java-forums.orgHey everyone, Ive recently started working with Java and have a basic grasp to it, but I hit a problem. When I enter a JList into a JPanel, the list will show up, but any other JPanels I add will not show up(when I run void-main option in BlueJ), and Im not sure as to what Im doing wrong because I'm ... |
3. jlist not appearing in jpanel forums.oracle.comSo you have a JPanel. And you add a JList to it. (What layout manager are you using there, by the way?) Then you create a JScrollPane and add the JList to that, but you don't do anything with it. You just let it be garbage-collected. You can't add a component to two containers. So what has happened is after the ... |