Source Code Cross Referenced for CustomOceanTheme_SnowEFCNSmall.java in  » IDE » tIDE » snow » lookandfeel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » tIDE » snow.lookandfeel 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package snow.lookandfeel;
002:
003:        import snow.utils.storage.AppProperties;
004:        import snow.utils.gui.*;
005:
006:        import java.io.*;
007:        import javax.swing.*;
008:        import javax.swing.event.*;
009:        import javax.swing.plaf.metal.*;
010:        import javax.swing.plaf.*;
011:        import java.awt.*;
012:        import java.awt.event.*;
013:        import java.util.*;
014:
015:        public class CustomOceanTheme_SnowEFCNSmall extends CustomOceanTheme {
016:            public static final String name = "EFCNBlack Theme";
017:
018:            public CustomOceanTheme_SnowEFCNSmall(AppProperties props) {
019:                super (name, props, null);
020:                writeDefaults();
021:            }
022:
023:            /** Writes the defaults in the inifile.
024:             */
025:            @Override
026:            public void writeDefaults() {
027:                this .setDefaultFont(this .FONT_ControlText, new FontUIResource(
028:                        "Dialog", Font.PLAIN, 11));
029:                this .setDefaultFont(this .FONT_System, new FontUIResource(
030:                        "Dialog", Font.PLAIN, 11));
031:                this .setDefaultFont(this .FONT_WindowTitle, new FontUIResource(
032:                        "Dialog", Font.BOLD, 12));
033:                this .setDefaultFont(this .FONT_UserText, new FontUIResource(
034:                        "SansSerif", Font.PLAIN, 11));
035:                this .setDefaultFont(this .FONT_SubText, new FontUIResource(
036:                        "Dialog", Font.PLAIN, 10));
037:
038:                // Colors
039:                //
040:                // menufont
041:                this .setDefaultColor(this .COLOR_BLACK, new ColorUIResource(200,
042:                        200, 200)); // black is white
043:                this .setDefaultColor(this .COLOR_White, new ColorUIResource(20,
044:                        20, 20)); // and white is black, no ?
045:
046:                // Title back, ext frame borders
047:                this .setDefaultColor(this .COLOR_Primary1, new ColorUIResource(
048:                        98, 88, 112));
049:                // Combobox selections, table, tree selections
050:                this .setDefaultColor(this .COLOR_Primary2, new ColorUIResource(
051:                        84, 78, 96));
052:                // border of buttons when mouse over, table, tree selections, text highlight
053:                this .setDefaultColor(this .COLOR_Primary3, new ColorUIResource(
054:                        80, 75, 91)); // too dark
055:
056:                // all components border
057:                this .setDefaultColor(this .COLOR_Secondary1,
058:                        new ColorUIResource(53, 58, 73));
059:                // clicked background, focus checkbox, second button gradient
060:                this .setDefaultColor(this .COLOR_Secondary2,
061:                        new ColorUIResource(80, 84, 80));
062:                // panel background
063:                this .setDefaultColor(this .COLOR_Secondary3,
064:                        new ColorUIResource(40, 40, 40));
065:                // too light new ColorUIResource(116, 122, 116 ));
066:
067:                this .setDefaultColor(this .COLOR_Green, new ColorUIResource(30,
068:                        120, 30));
069:                this .setDefaultColor(this .COLOR_Red, new ColorUIResource(120,
070:                        30, 30));
071:
072:                this .setDefaultColor(this .COLOR_DesktopColor,
073:                        new ColorUIResource(55, 55, 55)); // drak gray
074:
075:                // table text
076:                this .setDefaultColor(this .COLOR_ControlText,
077:                        new ColorUIResource(200, 200, 200));
078:
079:                this .setDefaultColor(this .COLOR_tide_Comments,
080:                        new ColorUIResource(130, 130, 60));
081:                this .setDefaultColor(this .COLOR_tide_Text, new ColorUIResource(
082:                        200, 200, 200));
083:                this .setDefaultColor(this .COLOR_tide_Keywords,
084:                        new ColorUIResource(160, 30, 30));
085:                this .setDefaultColor(this .COLOR_tide_Litterals,
086:                        new ColorUIResource(30, 160, 30));
087:
088:                //addCustomEntriesToTable(UIManager.getDefaults());
089:            }
090:
091:            @Override
092:            public void addCustomEntriesToTable(UIDefaults table) {
093:
094:                super .addCustomEntriesToTable(table);
095:
096:                //if(true) return;
097:
098:                /*Original
099:                java.util.List buttonGradient = Arrays.asList(
100:                             new Object[] {new Float(.3f), new Float(0f),
101:                             new ColorUIResource(0xDDE8F3), getWhite(), getSecondary2() }); */
102:
103:                java.util.List buttonGradient = Arrays.asList(new Object[] {
104:                        new Float(0.3f), new Float(0.45f), getBlack(),
105:                        getWhite(), getBlack() });
106:
107:                UIManager.put("Button.gradient", buttonGradient);
108:                UIManager.put("CheckBox.gradient", buttonGradient);
109:                UIManager.put("InternalFrame.activeTitleGradient",
110:                        buttonGradient);
111:
112:                /*DEF    java.util.List menubGradient = Arrays.asList(new Object[] {
113:                 new Float(1f), new Float(0f),
114:                 getWhite(), dadada,
115:                 new ColorUIResource(dadada) });*/
116:
117:                Color dadada = new ColorUIResource(0xDADADA);
118:                java.util.List menubGradient = Arrays.asList(new Object[] {
119:                        new Float(2f), new Float(0f), getWhite(), dadada,
120:                        new ColorUIResource(dadada) });
121:
122:                UIManager.put("MenuBar.gradient", menubGradient);
123:
124:                // [Aug2006]
125:                UIManager.put("TabbedPane.unselectedBackground",
126:                        new ColorUIResource(getWhite()));
127:                UIManager.put("TabbedPane.contentAreaColor",
128:                        new ColorUIResource(Color.darkGray)); // orig = white(), OK
129:                UIManager.put("TabbedPane.selected", new ColorUIResource(
130:                        Color.darkGray));
131:                UIManager.put("ScrollBar.width", 12); // instead 17
132:
133:                // [Feb2008]
134:                Font font = new FontUIResource(UIManager
135:                        .getFont("InternalFrame.titleFont"));
136:                UIManager.put("Menu.font", font);
137:                UIManager.put("MenuBar.font", font);
138:                UIManager.put("MenuItem.font", font);
139:
140:            }
141:
142:            /*  public static void main(String[] aaa)
143:             {
144:             ThemesManager.main(aaa);
145:             }*/
146:
147:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.