猿问

求助java中如何设置窗体的标题???

求助java中如何设置窗体的标题???


有只小跳蛙
浏览 1380回答 2
2回答

吃鸡游戏

1234567891011121314151617181920212223242526272829public ui() {        // TODO Auto-generated constructor stub        rs = new rs232() {            @Override            public void back(String s1) {                // TODO Auto-generated method stub                ReceiveArea.setText(s1);            }        };        Events();        setLayout(gbl);        setParamePanel();        add(ParamePanel, constraints);        setLabel();        add(new JLabel("接收缓冲区"), constraints);        constraints.gridx = 1;// 列        constraints.gridy = 4;// 行        add(new JLabel("发送缓冲区"), constraints);        setReceiveArea();        add(jsp1, constraints);        setSendArea();        add(jsp2, constraints);        setLF();        setDefaultCloseOperation(EXIT_ON_CLOSE);        setTitle("我是标题");        setVisible(true);        setSize(575, 410);        setResizable(false);    }

慕尼黑的夜晚无繁华

1this.setTitle("你的窗体标题");
随时随地看视频慕课网APP

相关分类

Java
我要回答