幫幫我!每當我嘗試啓動下面的代碼時,它只顯示底部的按鈕和其他地方的密碼字段。我希望能夠看到的一切,但我不能 public void setup(){
frame = new JFrame("Votinator 3000");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
voteconfirm = new
我想創建一個JFrame,其中使用FlowLayout插入兩個JPanel。我有一個單獨的文件中被初始化的框架,但這裏是我一直被稱爲 public class FlowInFlow extends JFrame
{
public FlowInFlow() {
setLayout(new FlowLayout());
JPanel panel1 = new JPanel(
爲什麼我的組件使用FlowLayout封裝在這個JPanel中?他們只是跑出屏幕,只是部分可見。 JPanel panel = new JPanel(new FlowLayout());
panel.add(new JLabel("TEST"));
// ... repeat adding JLabels until they go off screen when they SHOULD wr