Updated comments WRT component sizing information

This commit is contained in:
nathan 2017-03-05 00:19:20 +01:00
parent 0455507f51
commit 6b1d0c4a12
2 changed files with 16 additions and 0 deletions

View File

@ -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.
*
* 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
interface SwingUIFactory {

View File

@ -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
* 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
class CustomSwingUI implements SwingUIFactory {