EDOBE XDOM PMML Instrukcja Użytkownika Strona 44

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 43
44
listModel = new DefaultListModel();
listBox = new JList();
listBox.setModel(listModel);
listBox.setSelectionMode(
ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
JScrollPane scrollPane = new JScrollPane(listBox);
scrollPane.setBorder(
BorderFactory.createLoweredBevelBorder());
JLabel label = new JLabel("Columns to Copy");
label.setBorder(
BorderFactory.createEmptyBorder(0, 0, 5, 0));
label.setLabelFor(listBox);
GridBagConstraints constraints =
new GridBagConstraints();
constraints.anchor = constraints.NORTHWEST;
optionsPanel.add(label, constraints );
constraints.gridy = 1;
constraints.weighty = 1.0;
constraints.weightx = 0.5;
constraints.fill = constraints.BOTH;
constraints.gridheight = constraints.REMAINDER;
optionsPanel.add(scrollPane, constraints);
return optionsPanel;
}
/**
* Method called when the user presses the help button
*/
public void onHelp() {
AcceleratorOptionPane.showOKDialog(this,
"This dialog copies specified columns from\n" +
"the input to the output. Selected the\n" +
"columns to be copied. For multiple selection,\n" +
"use SHIFT+click to select a range of items and\n" +
"CTRL+click to add items to the current selection.",
"Copy Dialog Usage",
Przeglądanie stron 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag