摘要: 这一节学习JTable的基本操作:行选择和列宽度的调整一、行选择分为单行(ListSelectionModel.SINGLE_SELECTION),多行连续(ListSelectionModel.SINGLE_INTERVAL_SELECTION)和多行非连续(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION)示例代码如下:View Code 1 import java.awt.BorderLayout; 2 import java.awt.Container; 3 4 import javax.swing.JFrame; 5 import ja.. 阅读全文
posted @ 2012-10-22 15:25 codevoter 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 做Java开发也有四年的时间了,但是从来没有系统的学习过Swing的知识,最近忙里偷闲看了看Swing的相关书籍,感觉还是蛮有意思的。今天先记录一下JTable的学习经历。为了避免重复代码,写了一个工具类,功能就是启动主窗口为800×600分辨率并置中,代码如下:View Code 1 import java.awt.Dimension; 2 import java.awt.Toolkit; 3 4 import javax.swing.JFrame; 5 import javax.swing.WindowConstants; 6 7 8 public class JFrameLa. 阅读全文
posted @ 2012-10-22 13:07 codevoter 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 一、JMX简介 官网学习地址:http://docs.oracle.com/javase/tutorial/jmx/index.html The Java Management Extensions (JMX) technology is a standard part of the Java Platform, Standard Edition (Java SE platform). The JMX technology was added to the platform in the Java 2 Platform, Standard Edition (J2SE) 5.0 releas.. 阅读全文
posted @ 2012-10-22 12:08 codevoter 阅读(350) 评论(0) 推荐(0) 编辑

ASP.NET HOSTING