Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
private JTable getJTableProcesses() {
if (jTableProcesses == null) {
final ProcessTableModel model = new ProcessTableModel(); }
jTableProcesses = new JTable(model);
jTableProcesses.setOpaque(true);
getJScrollPane().setViewportView(jTableProcesses);
jTableProcesses.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
model.fireTableStructureChanged();
for(int index=0;index < jTableProcesses.getColumnCount();index++)
jTableProcesses.getColumnModel().getColumn(index).setWidth(100);
final ListSelectionModel listSelectionModel = jTableProcesses.getSelectionModel();
listSelectionModel.addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
model.fireTableStructureChanged();
jTableProcesses.setBackground(Color.red);
}
});
jTableProcesses.getModel().addTableModelListener(model);
jTableProcesses.repaint();
jTableProcesses.addMouseListener(new TableListener(
getJPopupMenuProcessAction(jTableProcesses)));
}
return jTableProcesses;
}
jTableProcesses = new JTable(model);
getJScrollPane().setViewportView(jTableProcesses);
jTableProcesses.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
model.fireTableStructureChanged();
jTableProcesses.setPreferredSize(new Dimension(350,300));
// for(int index=0;index < jTableProcesses.getColumnCount();index++)
// jTableProcesses.getColumnModel().getColumn(index).setWidth(225);
final ListSelectionModel listSelectionModel = jTableProcesses.getSelectionModel();
listSelectionModel.addListSelectionListener(new ListSelectionListener() {
@Override
public void valueChanged(ListSelectionEvent e) {
model.fireTableStructureChanged();
// jTableProcesses.getColumnModel().getColumn(1).setBackground(Color.red);
}
});
jTableProcesses.getModel().addTableModelListener(model);
jTableProcesses.repaint();
jTableProcesses.addMouseListener(new TableListener(
getJPopupMenuProcessAction(jTableProcesses)));