d-bl / bobbinwork

Abandoned runaway hello world for OO design and Java development, predesessor of GroundForge and inkscape-bobbinlace
1 stars 0 forks source link

color chooser with multiple tabs #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
currently each platform presents its own color chooser, swatches on
windows, a circle with a triangle on linux...

The following article shows a way to present three models on tabs
// http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#editor

Original issue reported on code.google.com by bobbin.w...@gmail.com on 14 Mar 2010 at 6:41

GoogleCodeExporter commented 9 years ago
see ThreadStyleToolbar.ColorButton.actionPerformed

Original comment by bobbin.w...@gmail.com on 14 Mar 2010 at 6:50

GoogleCodeExporter commented 9 years ago
The screen shot in this section does not match when the code is applied 

Original comment by bobbin.w...@gmail.com on 14 Mar 2010 at 10:54

GoogleCodeExporter commented 9 years ago
it appears that the system look and feel limits the chooser to a single tab. The
following code throws an error while filling the array:

      final JColorChooser chooser = new JColorChooser();
      AbstractColorChooserPanel[] newPanels = new AbstractColorChooserPanel[1];
      newPanels[0] = findPanel(chooser,
"javax.swing.colorchooser.DefaultHSBChooserPanel");
      newPanels[1] = findPanel(chooser,
"javax.swing.colorchooser.DefaultRGBChooserPanel");
      newPanels[2] = findPanel(chooser,
"javax.swing.colorchooser.DefaultSwatchChooserPanel");
      chooser.setChooserPanels(newPanels);

      JColorChooser.createDialog( ThreadStyleToolBar.this, "pick color", true,
          chooser, new ActionListener(){...}, null);

http://www.java2s.com/Code/Java/Swing-JFC/SettingtheOrderoftheColorChooserPanelT
absinaJColorChooserDialog.htm

Original comment by bobbin.w...@gmail.com on 14 Mar 2010 at 1:49

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r670.

Original comment by bobbin.w...@gmail.com on 14 Mar 2010 at 6:42