Releases: vincenzopalazzo/material-ui-swing
V1.0.Beta1.4.1
-
This version includes the new style inside the JTabbedPane
-
A first version of the Material theme for configuring the library with an interface MaterialTheme
This look and feel implement a method for theming personal, don't use the MetalTheme but implements
the complete system.
For the moment not is scheduler a documentations and this is considered a version alpha, if you want to
try the implement a theme for this look and feel, you can extend the abstract class AbstractMaterialTheme implement
the methods abstract, for more info look theme mlaf.thmes.MaterialLiteTheme
For a change the theme to runtime you can use this code
if (UIManager.getLookAndFeel() instanceof MaterialLookAndFeel){
MaterialLookAndFeel.changeTheme(new MaterialDarkTheme());
}
Look the example inside the test/java/integration/gui/mock
Stack Overflow
We are using the Stack Overflow to help the community, if you need the help, you can write a post
with these tags
java, material, swing, look-and-feel
ps: we use these until we have one of our own
Some screen
V1.0.Beta1.3
The news into version is
- New style combo box
- Bug status JTextField
- Bug status Default and Focus JTextField
- Different color row table
- Background color Jbutton when disabled
- Mouse hover cursor status (alpha version)
Component news
Button status Default and normal
Button status Disable and normal with color personal COSMO_BLUE
plus all changes in this release
V1.0[Beta]
This version introduces all changes made in the version 0.9.9, And adds the following fixes
Bug Fixed
- Fixed issue #35
- Fixed issue #23
- update demo swing
- Fixed issue atarw#81
- Fixed issue atarw#80
- Fixed issue atarw#77
- NullPointer into JTextField
- Icon white
- Keyborad actions list
- Removed arrow to Jscrollbar
- Border button JButton
- Default action JOptionPane
- Fixed button focusable look
- Added support JList
- Remove Old dependency(remove MaterialImages, MaterialFonts)
- Graphic alignment JTextField and JPasswordField
- Removed font native for OS, now noto is good, and my project is smaller
- Fixed issue #38
- Fixed issue #25
- Fixed issue #40
- Fixed issue #39
- Fixed issue #19
- Fixed issue #41
- Fixed issue #43
- Fixed issue #30
- Fixed issue #51
- Fixed issue #49
- Fixed issue #55
- Fixed problem to JTable paint custom color into the header
- Fixed problem into JTree background and foreground color
- Fixed issue #54
- Fixed position line into JTabbledPane
- Fixed color strange into JComboBox
- Fixed color disable text JCheckBox
- Fixed issue #58
- Fixed issue #57
- Fixed issue #56
- Fixed issue #55
- Fixed issue #59
New Function in beta test
-
look JDialog and JOptionPane, the component are not the border of a window when using this code before setting Look and feel
JDialog.setDefaultLookAndFeelDecorated(true);
Look new Component supported
With this constant
table.put("Label[disabled].font", MaterialFontFactory.getInstance().getFont(MaterialFontFactory.ITALIC));
table.put("Label[disabled].background", MaterialColors.WHITE);
table.put("Label[disabled].foreground", MaterialColors.COSMO_BLACK);
for adding this effect you use this constant
table.put("ComboBox.unfocusColor", MaterialColors.COSMO_BLACK);
table.put("ComboBox.focusColor", MaterialColors.LIGHT_BLUE_500);
table.put("ComboBox.border", MaterialBorders.roundendLineColorBorder(MaterialColors.COSMO_BLACK));
And I have created a new type of border round, you can use it in two mode
- Border rounded Light blue with the constant
MaterialBorders.ROUNDED_CORNER_BORDER
- A personal color border with the static function
MaterialBorders.roundedLineColorBorder("YOUR_COLOR");
Button default into JOprionPane
Constant name
Color DARKLY_STRONG_BLUE
Color DARKLY_BLUE
Color COSMO_STRONG_BLUE
Color COSMO_BLUE
Color COSMO_LIGTH_BLUE
Color DARKLY_RED
Color COSMO_RED
Color COSMO_LIGHT_RED
Color COSMO_PURPLE
Color COSMO_LIGHT_PURPLE
Color DARKLY_ORANGE
Color COSMO_ORANGE
Color COSMO_LIGHT_ORANGE
Color DARKLY_STRONG_GREEN
Color DARKLY_GREEN
Color COSMO_GREEN
Color COSMO_LIGHT_GREEN
Color COSMO_LIGTH_GRAY
Color COSMO_MEDIUM_GRAY
Color COSMO_STRONG_GRAY
Color COSMO_DARK_GRAY
Color DARKLY_GRAY
Color COSMO_BLACK
- Add constant for the icon JFileChooser, the constant is
"FileChooser[icons].computer"
"FileChooser[icons].directory"
"FileChooser[icons].file"
"FileChooser[icons].floppyDrive"
"FileChooser[icons].hardDrive"
"FileChooser[icons].home"
"FileChooser[icons].list"
"FileChooser[icons].details"
"FileChooser[icons].newFolder"
"FileChooser[icons].upFolder"
and the icons are two color BLACK and WHITE such as the RINGO :)
MaterialImageFactory.COMPUTER_COLOR
MaterialImageFactory.FOLDER_COLOR
MaterialImageFactory.FILE_COLOR
MaterialImageFactory.FLOPPY_DRIVE_COLOR
MaterialImageFactory.HARD_DRIVE_COLOR
MaterialImageFactory.HOME_COLOR
MaterialImageFactory.LIST_COLOR
MaterialImageFactory.DETAILS_COLOR
MaterialImageFactory.NEW_FOLDER_COLOR
MaterialImageFactory.BACK_ARROW_COLOR
MaterialImageFactory.TOGGLE_BUTTON_ON_WHITE
MaterialImageFactory.TOGGLE_BUTTON_OFF_WHITE
V1.0[Beta]
This version introduces all changes made in the version 0.9.9, And adds the following fixes
Bug Fixed
- Fixed issue #35
- Fixed issue #23
- update demo swing
- Fixed issue atarw#81
- Fixed issue atarw#80
- Fixed issue atarw#77
- NullPointer into JTextField
- Icon white
- Keyborad actions list
- Removed arrow to Jscrollbar
- Border button JButton
- Default action JOptionPane
- Fixed button focusable look
- Added support JList
- Remove Old dependency(remove MaterialImages, MaterialFonts)
- Graphic alignment JTextField and JPasswordField
- Removed font native for OS, now noto is good, and my project is smaller
- Fixed issue #38
- Fixed issue #25
- Fixed issue #40
- Fixed issue #39
- Fixed issue #19
- Fixed issue #41
- Fixed issue #43
- Fixed issue #30
- Fixed issue #51
- Fixed issue #49
- Fixed issue #55
- Fixed problem to JTable paint custom color into the header
- Fixed problem into JTree background and foreground color
- Fixed issue #54
- Fixed position line into JTabbledPane
- Fixed color strange into JComboBox
- Fixed color disable text JCheckBox
New Function in beta test
-
look JDialog and JOptionPane, the component are not the border of a window when using this code before setting Look and feel
JDialog.setDefaultLookAndFeelDecorated(true);
Look new Component supported
With this constant
table.put("Label[disabled].font", MaterialFontFactory.getInstance().getFont(MaterialFontFactory.ITALIC));
table.put("Label[disabled].background", MaterialColors.WHITE);
table.put("Label[disabled].foreground", MaterialColors.COSMO_BLACK);
Button default into JOprionPane
Constant name
Color DARKLY_STRONG_BLUE
Color DARKLY_BLUE
Color COSMO_STRONG_BLUE
Color COSMO_BLUE
Color COSMO_LIGTH_BLUE
Color DARKLY_RED
Color COSMO_RED
Color COSMO_LIGHT_RED
Color COSMO_PURPLE
Color COSMO_LIGHT_PURPLE
Color DARKLY_ORANGE
Color COSMO_ORANGE
Color COSMO_LIGHT_ORANGE
Color DARKLY_STRONG_GREEN
Color DARKLY_GREEN
Color COSMO_GREEN
Color COSMO_LIGHT_GREEN
Color COSMO_LIGTH_GRAY
Color COSMO_MEDIUM_GRAY
Color COSMO_STRONG_GRAY
Color COSMO_DARK_GRAY
Color DARKLY_GRAY
Color COSMO_BLACK
- Add constant for the icon JFileChooser, the constant is
"FileChooser[icons].computer"
"FileChooser[icons].directory"
"FileChooser[icons].file"
"FileChooser[icons].floppyDrive"
"FileChooser[icons].hardDrive"
"FileChooser[icons].home"
"FileChooser[icons].list"
"FileChooser[icons].details"
"FileChooser[icons].newFolder"
"FileChooser[icons].upFolder"
and the icons are two color BLACK and WHITE such as the RINGO :)
MaterialImageFactory.COMPUTER_COLOR
MaterialImageFactory.FOLDER_COLOR
MaterialImageFactory.FILE_COLOR
MaterialImageFactory.FLOPPY_DRIVE_COLOR
MaterialImageFactory.HARD_DRIVE_COLOR
MaterialImageFactory.HOME_COLOR
MaterialImageFactory.LIST_COLOR
MaterialImageFactory.DETAILS_COLOR
MaterialImageFactory.NEW_FOLDER_COLOR
MaterialImageFactory.BACK_ARROW_COLOR
MaterialImageFactory.TOGGLE_BUTTON_ON_WHITE
MaterialImageFactory.TOGGLE_BUTTON_OFF_WHITE
V1.0.Beta
This version introduces all changes made in the version 0.9.9, And adds the following fixes
Bug Fixed
- Fixed issue #35
- Fixed issue #23
- update demo swing
- Fixed issue atarw#81
- Fixed issue atarw#80
- Fixed issue atarw#77
- NullPointer into JTextField
- Icon white
- Keyborad actions list
- Removed arrow to Jscrollbar
- Border button JButton
- Default action JOptionPane
- Fixed button focusable look
- Added support JList
- Remove Old dependency(remove MaterialImages, MaterialFonts)
- Graphic alignment JTextField and JPasswordField
- Removed font native for OS, now noto is good, and my project is smaller
- Fixed issue #38
- Fixed issue #25
- Fixed issue #40
- Fixed issue #39
- Fixed issue #19
- Fixed issue #41
- Fixed issue #43
- Fixed issue #30
New Function in beta test
-
look JDialog and JOptionPane, the component are not the border of a window when using this code before setting Look and feel
JDialog.setDefaultLookAndFeelDecorated(true);
Look new Component supported
Button default into JOprionPane
Constant name
Color DARKLY_STRONG_BLUE
Color DARKLY_BLUE
Color COSMO_STRONG_BLUE
Color COSMO_BLUE
Color COSMO_LIGTH_BLUE
Color DARKLY_RED
Color COSMO_RED
Color COSMO_LIGHT_RED
Color COSMO_PURPLE
Color COSMO_LIGHT_PURPLE
Color DARKLY_ORANGE
Color COSMO_ORANGE
Color COSMO_LIGHT_ORANGE
Color DARKLY_STRONG_GREEN
Color DARKLY_GREEN
Color COSMO_GREEN
Color COSMO_LIGHT_GREEN
Color COSMO_LIGTH_GRAY
Color COSMO_MEDIUM_GRAY
Color COSMO_STRONG_GRAY
Color COSMO_DARK_GRAY
Color DARKLY_GRAY
Color COSMO_BLACK
- Add constant for the icon JFileChooser, the constant is
"FileChooser[icons].computer"
"FileChooser[icons].directory"
"FileChooser[icons].file"
"FileChooser[icons].floppyDrive"
"FileChooser[icons].hardDrive"
"FileChooser[icons].home"
"FileChooser[icons].list"
"FileChooser[icons].details"
"FileChooser[icons].newFolder"
"FileChooser[icons].upFolder"
and the icons are two color BLACK and WHITE such as the RINGO :)
MaterialImageFactory.COMPUTER_COLOR
MaterialImageFactory.FOLDER_COLOR
MaterialImageFactory.FILE_COLOR
MaterialImageFactory.FLOPPY_DRIVE_COLOR
MaterialImageFactory.HARD_DRIVE_COLOR
MaterialImageFactory.HOME_COLOR
MaterialImageFactory.LIST_COLOR
MaterialImageFactory.DETAILS_COLOR
MaterialImageFactory.NEW_FOLDER_COLOR
MaterialImageFactory.BACK_ARROW_COLOR
V0.9.9
This release should be stable
I Fixing some bug
- fix atarw#75
- fix atarw#74
- fix atarw#73
- fix atarw#72
- fix the problem font pixeled with noto font
- fix another null pointer into JTextField
- Fix MouseListner jSpinner
- try fixing atarw/material-ui-swing#77 mouseOver on the jScrollBar with adding a new effect MaterialUIMovementStatic it introducing a new effect onClick and onMouseHover
I'm creating a pull request because I believe that the issue are solved and then to allow those who have the problem to test the changes.
The changes are
Mouse hover on JMenu
Mouse hover on JSpinner and jComboBox
Reinsert old icon in JXTaskPane
if you test this look and fell, I init work to create a new version set_swing for the demo, the first jar is available here "swing-set2" and thanks @lilili87222 for this first version demo, and here is available the version of the swinh_set_V3 https://github.com/vincenzopalazzo/setSwing3
V0.9.8
Resolved bug in the effect mouse Hover, now is possible used the effect mouse over in the button in two mode,
1 mode
//Setting default
JButton testButtonHoverOne = new JButton("Fly over me One");
pn.add(testButtonHoverOne);
becouse used a setting in UIDefault
table.put("Button.mouseHoverColor", MaterialColors.GRAY_500);
table.put("Button.mouseHoverEnable", true);
But change background with a button.setBackgroung(Color), the effect is run correctly in this mode
2 mode
//ModSetting
JButton testButtonHoverTwo = new JButton("Fly over me Two");
testButtonHoverTwo.setBackground(MaterialColors.LIGHT_BLUE_500);
testButtonHoverTwo.setForeground(MaterialColors.WHITE);
testButtonHoverTwo.addMouseListener(MaterialUiMovement.getMovement(testButtonHoverTwo, MaterialColors.LIGHT_BLUE_200));
Another news in this version is the support of change cursor mouse when the mouse is on the component
Bug fix
- Null pointer on the windows 10 load font :)
- Effect Mouse hover reproduced when a button is disabled (now not reproduced)
- #66
- #65
- #64
- Now the jar weighs half :)
new skill
- Mouse over on JMenu and row on TabbedPane
- Added support JFormattedTextFieldUI
- Added support OptionPaneUI and change icon, the constant UIDefault are
- "OptionPaneUI.warningIcon"
- "OptionPaneUI.errorIcon"
- "OptionPaneUI.questionIcon"
- "OptionPaneUI.informationIcon" - Font OSX native -> SanFrancisco
- Reint Noto font for language not supported (fase testing)
TODO
- init refactoring Jtree
Screen update
Bug present
V0.9.7
Init effect mouseover and change cursor when mouse is on Jbutton
let me know if you like it :) if yes I try to add this effect to other components
Now are in plus two key in the UIDefoults, this
table.put("Button.mouseHoverColor", MaterialColors.GRAY_500); table.put("Button.mouseHoverEnable", true);
ps: beta test for resolve a fix #58
V0.9.6
Add Support at the JXTaskPane -> atarw/material-ui-swing#57
Added support native font in version beta, I try to resolve the problems for font pixeled
The jar is fat because include 3 type the font but not load font ed image not needed with factory and flaywait pattern