Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
all
Description
The problem takes place in jEdit (4.2 final) application running on DRLVM.
Just try to set docking options for some plugins and empty table cells
will be visible (they must display combo boxes). The following simplified
test reproduces the problem:
--------------
import javax.swing.JFrame;
import javax.swing.JTable;
import javax.swing.JComboBox;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.AbstractTableModel;
import java.awt.Component;
public class c {
public static void main(String[] args) {
JFrame frame = new JFrame("test");
final JComboBox box = new JComboBox(new String[]
);
JTable t = new JTable(
new AbstractTableModel() {
public int getRowCount()
public int getColumnCount() {return 2;}
public Class getColumnClass(int col)
{ return col==0?Integer.class:String.class; }public Object getValueAt(int row, int col)
{ return col==0?new Integer(99):"test"; } });
t.setDefaultRenderer(
t.getColumnClass(1),
new TableCellRenderer() {
public Component getTableCellRendererComponent(JTable table,
Object value, boolean isSelected, boolean hasFocus,
int row, int column)
});
frame.add(t);
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
}
Attachments
Issue Links
- is related to
-
HARMONY-3633 [testing] JEdit automated GUI test scenario for B&T 2.0 infrastructure
- Closed