這是我的代碼的一部分:修改兩個元素之間的垂直GABS JList中
listNumber1 = new JList();
listNumber1.setListData(numbers);
listNumber1.setVisibleRowCount(5);
scroll1 = new JScrollPane(listNumber1);
scroll1.setPreferredSize(new Dimension(50,100));
listOperations = new JList();
listOperations.setListData(operations);
listOperations.setVisibleRowCount(5);
scroll2 = new JScrollPane(listOperations);
scroll2.setPreferredSize(new Dimension(50,100));
listNumber2 = new JList();
listNumber2.setListData(numbers);
listNumber2.setVisibleRowCount(5);
scroll3 = new JScrollPane(listNumber2);
scroll3.setPreferredSize(new Dimension(50,100));
我的問題: 如何增加垂直GABS 之間(+ ),( - )和(*)要像圖片中的JList那樣
缺口有什麼問題? – vels4j