![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Swing
shui_jin_shan
简单,积极,进取
展开
-
swing小窗口..play JButton分布
图片素材如下:之前在网上找了好多JButton的,学到一个比较有意思的,不多说了,代码如下:import javax.swing.*;import java.awt.*;public class GuiTest { public static void main(String[] args) { JFrame frame = new JFrame...原创 2018-12-05 16:43:17 · 285 阅读 · 0 评论 -
swing--CardLayout play
import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class ExampleFrame_02 extends JFrame { private JPanel cardPanel; priv...原创 2018-12-05 19:43:16 · 201 阅读 · 0 评论 -
swing--文本框和scrollPane
textArea.setLineWrap(true);//自动换行 textArea.setRows(3);//设置行 textArea.setColumns(15);//设置列 scrollPane.setViewportView(textArea);//scrollpane添加文本框...原创 2018-12-05 20:51:51 · 450 阅读 · 0 评论