1 Star 0 Fork 131

bercz/codeMan

forked from 小螺旋丸/codeMan 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
RedisConfig.java 2.81 KB
一键复制 编辑 原始数据 按行查看 历史
zhangruixuann 提交于 2022-04-10 13:06 +08:00 . feat:版本更新,SpringCloud生成完善
package codeMaker;
import javax.swing.*;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.border.EmptyBorder;
import java.awt.*;
@Deprecated
public class RedisConfig extends JFrame {
/**
* serialVersionUID
*/
private static final long serialVersionUID = -9045885501535443327L;
private JPanel contentPane;
private JTextField ipVal;
private JTextField pwdVal;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(() -> {
try {
RedisConfig frame = new RedisConfig();
frame.setVisible(true);
} catch (Exception ignored) {
}
});
}
/**
* Create the frame.
*/
public RedisConfig() {
setTitle("redis配置");
setResizable(false);
setLocationRelativeTo(null);
setIconImage(Toolkit.getDefaultToolkit().getImage(MakeCode.class.getResource(
"/org/pushingpixels/substance/internal/contrib/randelshofer/quaqua/images/color_wheel.png")));
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
setBounds(100, 100, 288, 154);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
JLabel ip = new JLabel("ip地址:");
ipVal = new JTextField();
ipVal.setColumns(10);
JLabel pwd = new JLabel("密码:");
pwdVal = new JTextField();
pwdVal.setColumns(10);
GroupLayout gl_contentPane = new GroupLayout(contentPane);
gl_contentPane.setHorizontalGroup(
gl_contentPane.createParallelGroup(Alignment.LEADING)
.addGroup(gl_contentPane.createSequentialGroup()
.addGap(25)
.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING)
.addGroup(gl_contentPane.createSequentialGroup()
.addComponent(pwd)
.addGap(18)
.addComponent(pwdVal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addGroup(gl_contentPane.createSequentialGroup()
.addComponent(ip)
.addPreferredGap(ComponentPlacement.RELATED)
.addComponent(ipVal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
.addContainerGap(257, Short.MAX_VALUE))
);
gl_contentPane.setVerticalGroup(
gl_contentPane.createParallelGroup(Alignment.LEADING)
.addGroup(gl_contentPane.createSequentialGroup()
.addContainerGap()
.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
.addComponent(ip)
.addComponent(ipVal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addGap(18)
.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
.addComponent(pwd)
.addComponent(pwdVal, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addContainerGap(136, Short.MAX_VALUE))
);
contentPane.setLayout(gl_contentPane);
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/bercz/codeMan.git
git@gitee.com:bercz/codeMan.git
bercz
codeMan
codeMan
master

搜索帮助