-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added support to JSplitPane - Fixed issue jToggleButton disabled
- Loading branch information
1 parent
5f56e98
commit 81fd013
Showing
10 changed files
with
169 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
## Fixing | ||
- Fixed problem paint JLabel | ||
- Fixed problem to JTable paint custom color into header | ||
- Fixed problem into JTree background and foreground color | ||
- Fixed problem into JTaskPane color background was strange | ||
- Fixed position line into JTabbledPane | ||
- Fixed color strange into JComboBox | ||
- Fixed color disable text JCheckBox | ||
- Added support to JSplitPane | ||
- Fixed issue jToggleButton disabled |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package mdlaf.components.splitpane; | ||
|
||
import javax.swing.*; | ||
import javax.swing.plaf.ComponentUI; | ||
import javax.swing.plaf.basic.BasicSplitPaneDivider; | ||
import javax.swing.plaf.basic.BasicSplitPaneUI; | ||
import javax.swing.plaf.metal.MetalSplitPaneUI; | ||
import java.awt.*; | ||
//TODO sincronize this component with master | ||
/** | ||
* @author https://github.com/vincenzopalazzo | ||
*/ | ||
public class MaterialSplitPaneUI extends MetalSplitPaneUI { | ||
|
||
|
||
@SuppressWarnings({"MethodOverridesStaticMethodOfSuperclass", "UnusedDeclaration"}) | ||
public static ComponentUI createUI(JComponent c) { | ||
return new MaterialSplitPaneUI(); | ||
} | ||
|
||
@Override | ||
public void installUI(JComponent c) { | ||
super.installUI(c); | ||
|
||
this.divider.setBackground(UIManager.getColor("SplitPaneDivider.background")); | ||
} | ||
|
||
@Override | ||
public BasicSplitPaneDivider createDefaultDivider() { | ||
return new MaterialSplitPaneDivider(this); | ||
} | ||
|
||
protected class MaterialSplitPaneDivider extends BasicSplitPaneDivider{ | ||
|
||
/** | ||
* Creates an instance of BasicSplitPaneDivider. Registers this | ||
* instance for mouse events and mouse dragged events. | ||
* | ||
* @param ui | ||
*/ | ||
public MaterialSplitPaneDivider(BasicSplitPaneUI ui) { | ||
super(ui); | ||
} | ||
|
||
@Override | ||
public void paintAll(Graphics g) { | ||
//g.setColor(UIManager.getColor("SplitPaneDivider.background")); | ||
super.paintAll(g); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.