- 0
- 0
- 约8.92千字
- 约 10页
- 2017-08-31 发布于河南
- 举报
java学习图形界面(Java learning graphical interfaces)
java学习图形界面(Java learning graphical interfaces)
The JAVA tutorial you are reading is: Java learning the first graphical interface.
Learn a few days Java, can not wait to enter the graphical interface, because the graphical interface can give people a visual effect, if you write a notepad in line boring code can be turned into a beautiful figure, that is what kind of feel! Next, I will explain a drawing program in steps, for your reference.
First, think of an interface to paint a program
The interface above the program shown in the file menu screen, print and exit the function, the main function of this program is to complete the functions of drawing, as shown, can be painted red, green, blue, black graphics, optional graphics say there is a rectangular and oval, Filled function whether filled closed image.
Before you start creating a graphical interface, first introduce the basics of creating graphics.
Frame, also called a framework, is a framework running interface consisting of a maximized, minimized, closed, and Frame name. Panel, also called the panel, adding Panel in Frame can make many things easier to solve, which we will see later, as follows, is a 100 * 100 Panel was added to the 200 x 200 Frame interface, note that why Panel display is a rectangular box? This is because the origin selects the top left of the header line (0, 0).
The Frame default layout manager for borderlayout, Panels default layout manager for flowlayout, the layout manager is divided into many kinds, the most common is flowlayout (FlowLayout), borderlayout (BorderLayout) and table layout manager (GridLayout).
1. stream layout manager is to put the components like water on the Frame or other components, from left to right, and then discharge, meet the boundary, then re start, in order to discharge, the overall placement in the central position. As shown below (this is to add Button to the Frame, because the default layout manager for Frame is not FlowLayout, so make the appropriate changes
您可能关注的文档
- 2014香港标杆房企住宅、豪宅、别墅及商业地产考察(9月26-28日)(2014 Hongkong benchmark housing prices, residential, luxury, villas and commercial real estate inspection (September 26-28)).doc
- 220th水冷方形分离器循环流化床锅炉的设计及运行(Design and operation of 220th water-cooled square separator circulating fluidized bed boiler).doc
- 23万余条意见里的百企业培训姓视角 个税改革三大焦点(More than 23 views of 100 enterprises training, surname perspective, tax reform focus of three).doc
- 23万余条意见里的百姓视角 个税改革三大焦点(More than 23 views of the people in the views of three major focus of tax reform).doc
- 24小时人体使用手册(24 hour manual for human use).doc
- 25 催运货物(25 freight forwarding).doc
- 24岁女工天天加管理班险致早产 想辞职就扣工资(24 year old female worker every day plus management class insurance premature birth, want to resign on deduction of wages).doc
- 25岁以后女孩怎样美容护肤(After 25 years old, how do the girls beauty skin care).doc
- 25水调歌头(25 Prelude To Water Melody).doc
- 25所最佳商学院的emba项目(EMBA project at the 25 best business schools).doc
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- ISO9001-2026质量管理体系标准版中英文及变化点解析.pdf VIP
- HGT 21629-1999 管架标准图(四).docx VIP
- 广州市民办学校申办审批表.doc VIP
- 无人机测绘技术与应用课件21--无人机驾驶员职业规划.ppt
- 2025年袋鼠数学LevelB试卷及答案.pdf VIP
- 《重症凝血病标准化评估中国专家共识(2025)》解读PPT课件.pptx VIP
- 《动物防疫法》培训解读课件.pptx VIP
- 无人机测绘技术与应用课件20--无人机飞行原理.ppt
- 先进控制技术及其应用.docx VIP
- 2025-2026学年济南版(2024)初中生物八年级上册《血液是物质运输的载体》教学设计.docx
原创力文档

文档评论(0)