-
Bug
-
Resolution: Fixed
-
P4
-
1.2.2
-
beta
-
x86
-
windows_nt
Name: skT88420 Date: 01/21/2000
java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads syncjit)
1. Run the following code which opens a table. The editor starts with one click.
2. Press and hold the page-up key.
3. While still holding down the page-up key, click on the last row in the table
and drag upwards.
IllegalComponentStateException
//code
import javax.swing.*;
import javax.swing.table.*;
public class PageUpTable {
public static void main(String args[]) {
JFrame frame = new JFrame();
JTable table = new JTable(5,1);
DefaultCellEditor editor = new DefaultCellEditor(new JTextField());
editor.setClickCountToStart(1);
table.getColumnModel().getColumn(0).setCellEditor(editor);
JScrollPane scroll = new JScrollPane(table);
frame.getContentPane().add(scroll);
frame.pack();
frame.show();
}
}
(Review ID: 100242)
======================================================================