Spot the differences
There are four differences between the two images. You can cheat and look at the SVN history :)
The original:
The latest:
There are four differences between the two images. You can cheat and look at the SVN history :)
The original:
The latest:
Almost ready…
Flamingo is getting closer to the feature freeze for version 5.0. Today’s drop introduced a few changes that will affect the applications using Flamingo:
And now i need your help. Download the latest 5.0dev drop of Flamingo, change the import sections of your classes, add Trident to the classpath and let me know if you find any bugs.
The latest 5.0dev drop of Flamingo provides a flexible color selector popup that you can associate with the command buttons that control the color selection of elements in your application. Here is how a color selector popup looks like under left-to-right and right-to-left orientation:
To associate a color selector popup with the specific command button (that has a popup area), return an instance of JColorSelectorPopupMenu from the PopupPanelCallback. This class extends the JCommandPopupMenu and allows adding command menu buttons, command toggle menu buttons and separators. The screenshot above shows two command menu buttons in the color selector popup – one at the top and another at the bottom.
In adition, the JColorSelectorPopupMenu provides the following APIs to add color selector sections:
A JColorSelectorPopupMenu is created with an instance of ColorSelectorCallback. This interface has two methods:
The selector sections added with the APIs above will be automatically wired to the color selector callback that you pass in the constructor. If your design requires displaying additional menu buttons to select color, these will need to be explicitly wired to the callback and the list of recently selected colors.
The test.common.TestColorSelector application shows sample code on how to do this. The top button selects a default color. It has an ActionListener which calls the same logic as onColorSelected(), and a ChangeListener that tracks changes to the rollover state of the menu button and calls the same logic as onColorRollover(). The bottom button in this sample application launches the core JColorChooser. When a color is selected in that chooser, the custom application code calls the same logic as onColorSelected().
When a color is selected in both custom menu buttons, the list of recently selected colors is updated – so that the user can quickly choose it again in the future. The relevant APIs in the JColorSelectorPopupMenu are:
This list is guaranteed to contain at most ten colors.
If you want to take the new color selector popup for a spin, you will need the following:
Note that the last two are required if you’re running your application under one of Substance skins.