Skip to content

Releases: vincenzopalazzo/material-ui-swing

V1.0.Beta1.4.1

03 Sep 22:44
5ad4858
Compare
Choose a tag to compare
V1.0.Beta1.4.1 Pre-release
Pre-release
  • 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

Selection_029

V1.0.Beta1.3

24 Jul 18:53
92317a4
Compare
Choose a tag to compare
V1.0.Beta1.3 Pre-release
Pre-release

The news into version is

Component news

  • New style for combo box
    when is focus
    Selection_084
    when is unfocus
    Selection_085

Button status Default and normal
Selection_086
Button status Disable and normal with color personal COSMO_BLUE
Selection_087

New style for the jTable
Selection_088

plus all changes in this release

V1.0[Beta]

09 Jun 13:34
Compare
Choose a tag to compare
V1.0[Beta] Pre-release
Pre-release

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 JTabbledPane
    Selection_013

  • 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);
    Selection_006
    Selection_007
    Selection_005

Look new Component supported

JLabel disabled
Selection_014

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);

ComboBox
ezgif com-video-to-gif

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");

JList
Selection_010

JTree
Selection_007

Button default into JOprionPane
Selection_008

Old look JOptionPane
Selection_012
Selection_013

New Color
Screenshot
Selection_014

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

Screen demo swing_set whit material-ui-swing
Selection_015
Selection_016
Selection_017
Selection_018
Gif combo box

V1.0[Beta]

26 May 09:04
Compare
Choose a tag to compare
V1.0[Beta] Pre-release
Pre-release

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 JTabbledPane
    Selection_013

  • 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);
    Selection_006
    Selection_007
    Selection_005

Look new Component supported

JLabel disabled
Selection_014

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);

JList
Selection_010

JTree
Selection_007

Button default into JOprionPane
Selection_008

Old look JOptionPane
Selection_012
Selection_013

New Color
Screenshot
Selection_014

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

Screen demo swing_set whit material-ui-swing
Selection_015
Selection_016
Selection_017
Selection_018
Gif combo box

V1.0.Beta

18 May 15:31
Compare
Choose a tag to compare
V1.0.Beta Pre-release
Pre-release

This version introduces all changes made in the version 0.9.9, And adds the following fixes

Bug Fixed

New Function in beta test

  • Look JTabbledPane
    Selection_006

  • 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);
    Selection_006
    Selection_007
    Selection_005

Look new Component supported

JList
Selection_010

JTree
Selection_007

Button default into JOprionPane
Selection_008

Old look JOptionPane
Selection_012
Selection_013

New Color
Screenshot
Selection_014

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

Screen demo swing_set whit material-ui-swing
Selection_015
Selection_016
Selection_017
Selection_018
Gif combo box

V0.9.9

28 Mar 22:53
Compare
Choose a tag to compare
V0.9.9 Pre-release
Pre-release

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

Button arrow jspinner
Selection_035

button arrow Jcombobox
Selection_034

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

01 Mar 17:10
Compare
Choose a tag to compare
V0.9.8 Pre-release
Pre-release

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));

This is the result
giphy

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

Selection_022
Selection_023
Selection_024

Bug present

Selection_027

V0.9.7

23 Feb 00:07
Compare
Choose a tag to compare
V0.9.7 Pre-release
Pre-release

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

557b2o

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

21 Feb 23:46
Compare
Choose a tag to compare
V0.9.6 Pre-release
Pre-release

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