Location:
Search - SWING table
Search list
Description: 说明:
1、这是一个让人眼前一亮的设计,通过java swing能设计出如此漂亮的界面实属不易;
2、该代码的一个优势,能够复用!!
3、能够创建简单的表,插入表,查询表的功能,尤其是查询部分可以在空白处输入SQL语句就可以直接查询了;
4、插入部分执行成功后重置界面还可以再次执行插入功能;
5、如果多个文件插入,也可以通过输入不同表名来进行更改;
6、这是一个桥连数据库,需要配置ODBC;
7、不足之处,由于本次设计中数据库设计成自动增加的功能,所以有时比较别扭,可能插不进去,不过如果能看懂代码的可以进行局部更改,不失为一个好的代码;-Note : 1, it is a people's eyes and through java swing can design the interface so beautiful it is not easy; 2, the source of an advantage to reuse! ! 3, to create a simple table, insert the table look-up table functions, especially for some of the blank space on the importation of SQL statements can direct inquiries; 4, insert some replacement after successful implementation of interface implementation can also insert functional again; 5, insert multiple files, they can also be searched by name of the table to change; 6, which is a bridge even database, the need for ODBC; 7, inadequate, due to the design of the database is designed to automatically increase the function, sometimes uncomfortable, interpolation may not get, but if we can understand code the changes can be localized, is
Platform: |
Size: 122255 |
Author: zhangsan |
Hits:
Description: 刚开始看到这个题目的时候,我并不是十分明白自己要做什么。Java语言是我们这个学期刚刚学过的课程,但是我们所学的都是些基本的东西,而且没有涉及到控件的问题。我查阅了一些资料,终于大体了解JTable和JTree是Swing组件里面的控件,一个是远程表,一个是目录树。在了解了一些关于这两个控件的一些知识之后,脑海中大体出现了一些流程。
我的程序设计大致按照下列流程进行:
1. 引入Awt包,Swing包
2. 设置顶层容器
3. 设置按钮和标签
4. 向容器中添加组件(JTable和JTree)
5. 进行事件处理
一、 实现过程以及实例解析
题目要求是用Java实现控件,因此我所使用的实现语言就是Java,刚开始我没有了解题目的真正含义,只实现了静态的JTable和JTree控件。
静态JTable是在JavaApplet中实现的,实现的大致过程为:首先建了一个容器,该容器用来获得新建的表格,然后建了一个模板,并给该模板添加滚动条,接着往容器中添加该模板,最后往数组中添加数据,并获取关于表格的相关信息。至此,程序就结束了。
-just beginning to see this subject, I do not quite understand what they ought to do. Java is the language of this semester we just learned in the course, but we have learned are some basic things, but did not address the issue of control. I looked up some information, and finally a general understanding and J Swing JTree component of the controls inside, a remote table is a directory tree. In some understanding on these two controls knowledge, mind there are some general procedures. I generally design the procedures in accordance with the following procedures : 1. Introduction Awt kits, Swing Pack 2. The top three containers installed. Set up four buttons and labels. Adding to the vessel components (J and JTree) 5. For an incident to achieve analytic process and examples of subject is requ
Platform: |
Size: 403359 |
Author: 丁兴全 |
Hits:
Description: 说明:
1、这是一个让人眼前一亮的设计,通过java swing能设计出如此漂亮的界面实属不易;
2、该代码的一个优势,能够复用!!
3、能够创建简单的表,插入表,查询表的功能,尤其是查询部分可以在空白处输入SQL语句就可以直接查询了;
4、插入部分执行成功后重置界面还可以再次执行插入功能;
5、如果多个文件插入,也可以通过输入不同表名来进行更改;
6、这是一个桥连数据库,需要配置ODBC;
7、不足之处,由于本次设计中数据库设计成自动增加的功能,所以有时比较别扭,可能插不进去,不过如果能看懂代码的可以进行局部更改,不失为一个好的代码;-Note : 1, it is a people's eyes and through java swing can design the interface so beautiful it is not easy; 2, the source of an advantage to reuse! ! 3, to create a simple table, insert the table look-up table functions, especially for some of the blank space on the importation of SQL statements can direct inquiries; 4, insert some replacement after successful implementation of interface implementation can also insert functional again; 5, insert multiple files, they can also be searched by name of the table to change; 6, which is a bridge even database, the need for ODBC; 7, inadequate, due to the design of the database is designed to automatically increase the function, sometimes uncomfortable, interpolation may not get, but if we can understand code the changes can be localized, is
Platform: |
Size: 121856 |
Author: zhangsan |
Hits:
Description: 刚开始看到这个题目的时候,我并不是十分明白自己要做什么。Java语言是我们这个学期刚刚学过的课程,但是我们所学的都是些基本的东西,而且没有涉及到控件的问题。我查阅了一些资料,终于大体了解JTable和JTree是Swing组件里面的控件,一个是远程表,一个是目录树。在了解了一些关于这两个控件的一些知识之后,脑海中大体出现了一些流程。
我的程序设计大致按照下列流程进行:
1. 引入Awt包,Swing包
2. 设置顶层容器
3. 设置按钮和标签
4. 向容器中添加组件(JTable和JTree)
5. 进行事件处理
一、 实现过程以及实例解析
题目要求是用Java实现控件,因此我所使用的实现语言就是Java,刚开始我没有了解题目的真正含义,只实现了静态的JTable和JTree控件。
静态JTable是在JavaApplet中实现的,实现的大致过程为:首先建了一个容器,该容器用来获得新建的表格,然后建了一个模板,并给该模板添加滚动条,接着往容器中添加该模板,最后往数组中添加数据,并获取关于表格的相关信息。至此,程序就结束了。
-just beginning to see this subject, I do not quite understand what they ought to do. Java is the language of this semester we just learned in the course, but we have learned are some basic things, but did not address the issue of control. I looked up some information, and finally a general understanding and J Swing JTree component of the controls inside, a remote table is a directory tree. In some understanding on these two controls knowledge, mind there are some general procedures. I generally design the procedures in accordance with the following procedures : 1. Introduction Awt kits, Swing Pack 2. The top three containers installed. Set up four buttons and labels. Adding to the vessel components (J and JTree) 5. For an incident to achieve analytic process and examples of subject is requ
Platform: |
Size: 403456 |
Author: 丁兴全 |
Hits:
Description: 利用Swing组件构造一个数据表格
1.生成窗口(调用JFrame)
2.声明一个AppTableModel对象用于存放表格数据
3.产生面板
4.初始化数组,
5.输出
-Use Swing components to construct a data table 1. Generation window (call to JFrame) 2. A statement AppTableModel object used to store form data 3. Have a panel 4. Initialize the array, 5. Output
Platform: |
Size: 5120 |
Author: malacca |
Hits:
Description: swing table 指定列渲染成button-out swing table rendering into the specified button
Platform: |
Size: 1024 |
Author: lemon |
Hits:
Description: java swing table colorce-colorcell
Platform: |
Size: 16384 |
Author: vivian |
Hits:
Description: ktable是Eclipse RCP开发时使用简单、功能强大的表格控件。-This is the source of a custom table class for Java SWT applications.
The original version of this table was written by Konstantin Scheglov.
KTable is a complete new implementation but uses the structure and
some code fragments from the old version.
The features of this table implementation in short terms:
- a table model provides the data for the table (comparable
to the Swing table model)
- cell rendering is done by extern classes and thus can easily
be changed to any rendering one could imagine...
- Columns and rows can be resized by mouse.
- There can be horizontal and vertical headers (fixed cells)
as many as needed.
- Different selection modes are available
- In place editing is possibel by using editor classes that
can easily be adjusted to special needs.
- Cells may span over several columns and/or rows.
Platform: |
Size: 91136 |
Author: aaa |
Hits:
Description: 用Java Swing写的一个查询界面代码,利用Table实现了结果的显示。-Written using Java Swing code in a query interface using the Table show the results achieved.
Platform: |
Size: 11264 |
Author: zhaochangchao |
Hits:
Description: While dealing with JTable you come across two main features
1)JTable
2)TableModel
With JTable you can display the data. You can allow the user to edit the data.
The tableModel takes care of the data to be displayed using JTable.
The JTable is normally added in <I>JScrollPane</I>. So when the rows get exceeded display area, the scrollbars of the scrollpane automatically gets activated.
you have to
import javax.swing.table.*
See Below Code in which there are 4 JButtons
1)Add Row
2)Delete Row
3)GetValue
4)SetValue
Using those buttons you can create a row,delete a row at runtime.
getValue returns value at particular cell while
setValue sets the value at particular cell
plus other important JTable related methods are discussed below.
see the code below (tableExample.java).
Platform: |
Size: 2048 |
Author: Ryo |
Hits:
Description: This java based swing component for table test.-This is java based swing component for table test.
Platform: |
Size: 3544064 |
Author: Sagara |
Hits:
Description: 将数据库中的资料以表格的形式显示在swing窗体中-Information to the database table displayed in the form of swing
Platform: |
Size: 2048 |
Author: wodehaha |
Hits:
Description: 基于GUI的Java五子棋游戏源码,可人机对战,用java swing做的,运行时
需要修改图片的路径。
制作思路:
用按钮做棋子,用图片填充每个按钮。
设置棋盘为24*24的,五子棋FiveChessGame类,继承了JFrame,并且
添加了时间监听,五子棋的棋子chess,用JButton表示,五子棋棋子chess
对应的棋子标识,用于标记棋子的状态。 1表示黑棋,-1表示白棋,默认0表
示无棋子,点击棋子时设置棋子的图标setOnChessIcon。 根据判断该位置
的棋子是否有棋子,和棋子颜色设置棋子图标
测试棋子的方法showChess。用于将chessInt数组内容打印到控制台,
以便观看。-GUI-based Java backgammon game source code, can be man-machine gaming, to do with java swing, run-time
Need to modify the image path.
Making ideas:
Using the button as a pawn to fill with pictures for each button.
Set the board to 24* 24, renju FiveChessGame class inherits JFrame, and
Add the time monitoring the game of the chess pieces chess, with a JButton that the game of chess pieces
Corresponding piece logo, used to mark pieces of state. 1 is Black, said the white side is-1, the default 0 table
Showed no pawn, click the icon pieces when set pieces setOnChessIcon. According to determine the location
The piece is a piece, and pieces color set piece icon
Test piece approach showChess. Array of content for the chessInt print to the console,
To watch.
Platform: |
Size: 346112 |
Author: 齐高 |
Hits:
Description: 此程序是用java编的,主要目的是为了快速无误实现“餐桌点菜”。使用了java的swing技术,数据库是用sql server2000,开发环境是eclipse。方便了小型餐饮行业的:顾客点菜,收银结账,增删菜品,统计收入(每月,每天,每年)等等。-This program is compiled with java, the main purpose is to quickly correct to achieve " a la carte dinner table." Java s swing technique used, the database is sql server2000, development environment eclipse. Convenient for small catering industry: customer order, cashier checkout, add or remove dishes, statistical income (monthly, daily, annually) and so on.
Platform: |
Size: 2123776 |
Author: |
Hits:
Description: Swing表格JTable支持滚动,Swing表格JTable不支持滚动-Swing JTable support form rolling, Swing JTable table does not support rolling
Platform: |
Size: 1024 |
Author: 夏江 |
Hits:
Description: 在Swing的Jtable的基础上,使用在Cell中存放JPanel,实现单个Cell中存放多个Component。
-Swing' s the Jtable of foundation stored in Cell JPanel, and stored in a single Cell the Component.
Platform: |
Size: 4096 |
Author: seasar |
Hits:
Description: java界面客户端 。 用表格在窗体内显示人员信息。-java interface client. The table shows the personnel information.
Platform: |
Size: 723968 |
Author: mzl |
Hits:
Description: 《Java从入门到精通》是人民邮电出版社于 2010年出版的图书,由国家863中部软孵化器主编。以零基础讲解为宗旨,深入浅出地讲解Java的各项技术及实战技能。本从初学者角度出发,通过通俗易懂的语言、丰富多彩的实例,详细介绍了使用Java语进行程序开发应该掌握的各方面技术。全书共分28章,包括:初识Java,熟悉Eclipse发工具,Java 语言基础,流程控制,字符串,数组,类和对象,包装类,数字处理类,接口、继承与多态,类的高级特性,异常处理,Swing程序设计,集合类,I/O输入出反射,枚举类型与泛型,多线程,网络通信,数据库操作,Swing表格组件,Swing树件,Swing其他高级组件,高级布局管理器,高级事件处理,AWT绘图与音频播放(To zero basis for the purpose of explanation, in layman's terms to explain Java's technical and practical skills. This book from a beginner's point of view, through the easy to understand language, colorful examples, detailing the use of Javalanguage for program development, should grasp all aspects of technology. The bookis divided into 28 chapters, including: the first Java, familiar with Eclipse developmenttools, Java language based on process control, strings, arrays, classes and objects,packaging, digital processing class, interface, inheritance and polymorphism, advanced features, like exception handling, Swing program design, collection, input and output of I/O, reflection, enumeration types and generic, multi thread, network communication, database operation, Swing table component, Swing tree components, Swing other advanced components, advanced layout manager, senior event handling,)
Platform: |
Size: 7254016 |
Author: 相扑
|
Hits:
Description: 通过电脑串口读取装置寄存器的数据(MODBUS协议),界面显示读取数据,然后存于数据库中,有配置串口、点表、配置数据库、插入数据库时间的界面功能(Through the computer serial port to read data register device (MODBUS protocol), the interface display read data, and then stored in the database, the interface function, serial configuration table, configure the database, insert database time)
Platform: |
Size: 3055616 |
Author: leekey
|
Hits:
Description: stewart平台,六自由度并联摇摆台的反解控制算法,配有GUI界面,可以自定义角度,杆长等参数,设定动平台位姿即能得到电机参数(Stewart platform, inverse solution control algorithm of 6-DOF parallel swing table, with GUI interface, you can customize parameters such as angle, rod length, and set the position and attitude of the moving platform to get the motor parameters)
Platform: |
Size: 132096 |
Author: 714205120 |
Hits: