总结:

package com.ds;
import java.awt.Color;
import java.awt.FlowLayout; import javax.swing.JFrame;
import javax.swing.JButton; public class gfrd{
static JFrame j=new JFrame("欢迎来到我的新浪微博");
static JButton b=new JButton("登陆");
static JButton b2=new JButton("注册");
static JButton b3=new JButton("重置");
static JButton b4=new JButton("修改");
static JButton b5=new JButton("设置"); public static void main(String[] args) {
j.setBackground(Color.blue);
j.setLayout(new FlowLayout());//所有按钮均可显示
j.add(b);
j.add(b2);
j.add(b3);
j.add(b4);
j.add(b5);
j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
j.setBounds(643, 567, 745, 645);
j.setLocationRelativeTo(null);//使窗体居中 显示在屏幕上
j.setVisible(true);
}
}

  

最新文章

  1. document.forms用法
  2. svg绘制圆弧
  3. SSIS技巧--优化数据流缓存
  4. .net MVC全球化资源使用心得
  5. Revit中绘制带坡度管道
  6. Android开发(二十四)——数据存储SharePreference、SQLite、File、ContentProvider
  7. hdu-------(1848)Fibonacci again and again(sg函数版的尼姆博弈)
  8. js缓速运动
  9. 49. Group Anagrams
  10. JS中String,Math常用函数
  11. 在Windows下自动运行Modelsim
  12. bind函数
  13. Jenkins SSH timeout
  14. Putty连接TPYBorad v102 开发板教程
  15. vue-router.esm.js:1905 TypeError: Cannot convert undefined or null to object
  16. 【洛谷P3605】晋升者计数
  17. 网站 HTTP 升级 HTTPS 完全配置手册
  18. Hadoop思维导图之概述
  19. ntp时间同步参考
  20. dubbo系列一、dubbo背景介绍、微服务拆分

热门文章

  1. 启动/关闭Spring boot服务脚本
  2. Java语言实现简单FTP软件------>上传下载管理模块的实现(十一)
  3. Linux开启防火墙后,设置允许通过的端口
  4. FTP开启被动连接模式
  5. date_default_timezone_get():
  6. 编程算法 - 最好牛线(Best Cow Line) 代码(C)
  7. Swift学习 --- 2.1基础部分
  8. PAT 天梯赛 L2-010. 排座位 【并查集】
  9. LRC歌词文件读取代码
  10. ssh允许root用户登陆