From e5bd060cdb991eae0397a738dd84bc14f0c27aac Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Sun, 24 Mar 2013 12:39:39 +0100 Subject: [PATCH] internal frame experiments --- .idea/dictionaries/kb.xml | 3 +++ .../darcula/darcula_windows.properties | 4 +++- .../ui/win/DarculaWindowsInternalFrameUI.java | 22 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .idea/dictionaries/kb.xml create mode 100644 src/com/bulenkov/darcula/ui/win/DarculaWindowsInternalFrameUI.java diff --git a/.idea/dictionaries/kb.xml b/.idea/dictionaries/kb.xml new file mode 100644 index 0000000..74bf831 --- /dev/null +++ b/.idea/dictionaries/kb.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/com/bulenkov/darcula/darcula_windows.properties b/src/com/bulenkov/darcula/darcula_windows.properties index 3fea07b..8e38720 100644 --- a/src/com/bulenkov/darcula/darcula_windows.properties +++ b/src/com/bulenkov/darcula/darcula_windows.properties @@ -4,4 +4,6 @@ darcula.selectionForeground=bbbbbb PopupMenu.border=com.bulenkov.darcula.ui.DarculaPopupMenuBorder -MenuBar.border=com.bulenkov.darcula.ui.DarculaMenuBarBorder \ No newline at end of file +MenuBar.border=com.bulenkov.darcula.ui.DarculaMenuBarBorder + +InternalFrameUI=com.bulenkov.darcula.ui.win.DarculaWindowsInternalFrameUI \ No newline at end of file diff --git a/src/com/bulenkov/darcula/ui/win/DarculaWindowsInternalFrameUI.java b/src/com/bulenkov/darcula/ui/win/DarculaWindowsInternalFrameUI.java new file mode 100644 index 0000000..64887ba --- /dev/null +++ b/src/com/bulenkov/darcula/ui/win/DarculaWindowsInternalFrameUI.java @@ -0,0 +1,22 @@ +package com.bulenkov.darcula.ui.win; + +import javax.swing.*; +import javax.swing.plaf.ComponentUI; +import javax.swing.plaf.basic.BasicInternalFrameUI; + +/** + * @author Konstantin Bulenkov + */ +public class DarculaWindowsInternalFrameUI extends BasicInternalFrameUI { + public DarculaWindowsInternalFrameUI(JInternalFrame b) { + super(b); + } + + + @SuppressWarnings({"MethodOverridesStaticMethodOfSuperclass", "UnusedDeclaration"}) + public static ComponentUI createUI(JComponent c) { + return new DarculaWindowsInternalFrameUI(((JInternalFrame) c)); + } + + +}