Closed homebeaver closed 9 months ago
Offenbar sind tatsächlich die vier Controller ComboBoxen als Demo gemeint. Dann sollten sie in das DemoFrame verschoben werden. Was ist das Besondere daran? Worin unterscheidet es sich vom tutorial?
TODO - Die Demos aus dem swing tutorial in SwingSet-Demo aufnehmen.
Das vierte Beispiel "Shows how to use a combo box as a table cell editor" ist nicht notwendig, da mit swingset.TableDemo
ein geeignetes Beispiel existiert:
// Create a combo box to show that you can use one in a table.
JComboBox<NamedColor> comboBox = new JComboBox<NamedColor>();
comboBox.addItem(aqua);
comboBox.addItem(beige);
comboBox.addItem(black);
...
class NamedColor extends Color {
String name;
public NamedColor(Color color, String name) {
super(color.getRGB());
this.name = name;
}
...
Was soll dieses Demo zeigen?
Die Controller CBn haben nix besonders.