Updated comments WRT component sizing information
This commit is contained in:
parent
0455507f51
commit
6b1d0c4a12
@ -27,6 +27,14 @@ import dorkbox.systemTray.Menu;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory to allow for Look & Feel of the Swing UI components in the SystemTray. Provide an implementation to customize the Swing L&F.
|
* Factory to allow for Look & Feel of the Swing UI components in the SystemTray. Provide an implementation to customize the Swing L&F.
|
||||||
|
*
|
||||||
|
* NOTICE: components can ALSO have different sizes attached to them, resulting in different sized components
|
||||||
|
* mini
|
||||||
|
* myButton.putClientProperty("JComponent.sizeVariant", "mini");
|
||||||
|
* small
|
||||||
|
* mySlider.putClientProperty("JComponent.sizeVariant", "small");
|
||||||
|
* large
|
||||||
|
* myTextField.putClientProperty("JComponent.sizeVariant", "large");
|
||||||
*/
|
*/
|
||||||
public
|
public
|
||||||
interface SwingUIFactory {
|
interface SwingUIFactory {
|
||||||
|
@ -38,6 +38,14 @@ import dorkbox.systemTray.swingUI.SwingUIFactory;
|
|||||||
*
|
*
|
||||||
* This implementation is provided as an example of what looks reasonable on our systems for Nimbus. Naturally, everyone will have
|
* This implementation is provided as an example of what looks reasonable on our systems for Nimbus. Naturally, everyone will have
|
||||||
* different systems and thus will want to change this based on their own, specified Swing L&F.
|
* different systems and thus will want to change this based on their own, specified Swing L&F.
|
||||||
|
*
|
||||||
|
* NOTICE: components can ALSO have different sizes attached to them, resulting in different sized components
|
||||||
|
* mini
|
||||||
|
* myButton.putClientProperty("JComponent.sizeVariant", "mini");
|
||||||
|
* small
|
||||||
|
* mySlider.putClientProperty("JComponent.sizeVariant", "small");
|
||||||
|
* large
|
||||||
|
* myTextField.putClientProperty("JComponent.sizeVariant", "large");
|
||||||
*/
|
*/
|
||||||
public
|
public
|
||||||
class CustomSwingUI implements SwingUIFactory {
|
class CustomSwingUI implements SwingUIFactory {
|
||||||
|
Loading…
Reference in New Issue
Block a user