?? e951. setting grid line properties in a jtable component.txt
字號:
JTable table = new JTable();
// Add data here
// Show both horizontal and vertical grid lines (the default)
table.setShowGrid(true);
// Don't show any grid lines
table.setShowGrid(false);
// Show only vertical grid lines
table.setShowGrid(false);
table.setShowVerticalLines(true);
// Show only horizontal grid lines
table.setShowGrid(false);
table.setShowHorizontalLines(true);
// Set the grid color
table.setGridColor(Color.red);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -