record.java

来自「java swing 开发代码」· Java 代码 · 共 21 行

JAVA
21
字号
// Record.java// A simple data structure for use with the PagingModel demo.//package	jswing.ch16;public class Record {  static String[] headers = { "Record Number", "Batch Number", "Reserved" };  static int counter;  String[] data;  public Record() {    data = new String[] { "" + (counter++), "" + System.currentTimeMillis(),              "Reserved" };  }  public String getValueAt(int i) { return data[i]; }  public static String getColumnName(int i) { return headers[i]; }  public static int getColumnCount() { return headers.length; }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?