本文整理了Java中javax.swing.JTable.setSelectionForeground()
方法的一些代码示例,展示了JTable.setSelectionForeground()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTable.setSelectionForeground()
方法的具体详情如下:
包路径:javax.swing.JTable
类名称:JTable
方法名:setSelectionForeground
暂无
代码示例来源:origin: net.sf.cuf/cuf-swing
table.setSelectionForeground(UIManager.getColor("Table.selectionForeground"));
table.setSelectionBackground(UIManager.getColor("Table.selectionBackground"));
table.setForeground (UIManager.getColor("Table.foreground"));
table.setSelectionForeground(UIManager.getColor("ComboBox.disabledForeground"));
table.setSelectionBackground(UIManager.getColor("ComboBox.disabledBackground"));
table.setForeground (UIManager.getColor("ComboBox.disabledForeground"));
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JTable table = (JTable) c;
table.setOpaque (false);
table.setSelectionForeground (UIManager.getColor ("Table.selectionForeground"));
table.setBackground (UIManager.getColor ("Table.background"));
table.setFont (UIManager.getFont ("Table.font"));
table.setBorder (UIManager.getBorder ("Table.border"));
table.setGridColor (UIManager.getColor ("Table.gridColor"));
table.setSelectionBackground (UIManager.getColor ("Table.selectionBackground"));
table.getTableHeader ().setResizingAllowed (true);
int rowHeight = UIManager.getInt ("Table.rowHeight");
if (rowHeight > 0) {
table.setRowHeight (rowHeight);
}
else {
table.setRowHeight (table.getRowHeight () + 25);
}
table.setDefaultRenderer (Object.class, new MaterialTableCellRenderer ());
table.setDefaultEditor (Object.class, new MaterialTableCellEditor ());
}
代码示例来源:origin: uk.org.mygrid.taverna.scufl.scufl-ui-components/enactor-invocation
processorTable.setGridColor(new Color(235, 235, 235));
processorTable.setSelectionBackground(new Color(232, 242, 254));
processorTable.setSelectionForeground(Color.BLACK);
processorTable.setIntercellSpacing(new Dimension(0, 1));
processorTable.setShowVerticalLines(false);
代码示例来源:origin: omegat-org/omegat
public static void applyColors(JTable table) {
if (!Platform.isMacOSX()) {
// Windows needs some extra colors set for consistency, but these
// ruin native LAF on OS X.
if (table.getParent() instanceof JViewport) {
table.getParent().setBackground(COLOR_STANDARD_BG);
}
if (table.getParent().getParent() instanceof JScrollPane) {
table.getParent().getParent().setBackground(COLOR_STANDARD_BG);
}
if (table.getTableHeader() != null) {
table.getTableHeader().setBackground(COLOR_STANDARD_BG);
}
}
table.setForeground(COLOR_STANDARD_FG);
table.setBackground(COLOR_STANDARD_BG);
table.setSelectionForeground(COLOR_SELECTION_FG);
table.setSelectionBackground(COLOR_SELECTION_BG);
table.setGridColor(COLOR_STANDARD_BG);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers
table.setSelectionForeground(UIUtils.TABLE_SELECTION_FOREGROUND_COLOR);
table.setShowGrid(false);
table.setRowMargin(0);
代码示例来源:origin: sc.fiji/TrackMate_
table.setPreferredScrollableViewportSize( new Dimension( 120, 400 ) );
table.getTableHeader().setOpaque( false );
table.setSelectionForeground( Color.YELLOW.darker().darker() );
table.setGridColor( TrackScheme.GRID_COLOR );
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
static void setComponentRenderers0(JTable table, TableModel tm) {
table.setSelectionForeground(table.getBackground());
代码示例来源:origin: fiji/TrackMate
table.setPreferredScrollableViewportSize( new Dimension( 120, 400 ) );
table.getTableHeader().setOpaque( false );
table.setSelectionForeground( Color.YELLOW.darker().darker() );
table.setGridColor( TrackScheme.GRID_COLOR );
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
if(sfg==null || sfg instanceof UIResource)
table.setSelectionForeground(UIManager.getColor("Table.selectionForeground"));
代码示例来源:origin: org.xworker/xworker_core
comp.setSelectionForeground(selectionForeground);
代码示例来源:origin: khuxtable/seaglass
table.setSelectionForeground(style.getColor(context, ColorType.TEXT_FOREGROUND));
内容来源于网络,如有侵权,请联系作者删除!