Source Code Cross Referenced for DataFormattingOptionsPanel.java in  » Database-Client » SQL-Workbench » workbench » gui » settings » 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 » Database Client » SQL Workbench » workbench.gui.settings 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * DataFormattingOptionsPanel.java
003:         *
004:         * This file is part of SQL Workbench/J, http://www.sql-workbench.net
005:         *
006:         * Copyright 2002-2008, Thomas Kellerer
007:         * No part of this code maybe reused without the permission of the author
008:         *
009:         * To contact the author please send an email to: support@sql-workbench.net
010:         *
011:         */
012:        package workbench.gui.settings;
013:
014:        import javax.swing.JPanel;
015:        import workbench.gui.components.NumberField;
016:        import workbench.gui.components.WbCheckBoxLabel;
017:        import workbench.gui.components.WbColorPicker;
018:        import workbench.interfaces.Restoreable;
019:        import workbench.resource.ResourceMgr;
020:        import workbench.resource.Settings;
021:
022:        /**
023:         *
024:         * @author  support@sql-workbench.net
025:         */
026:        public class DataFormattingOptionsPanel extends JPanel implements 
027:                Restoreable {
028:
029:            /** Creates new form GeneralOptionsPanel */
030:            public DataFormattingOptionsPanel() {
031:                initComponents();
032:            }
033:
034:            public void restoreSettings() {
035:                alternateColor.setSelectedColor(Settings.getInstance()
036:                        .getAlternateRowColor());
037:                dataFont.setSelectedFont(Settings.getInstance().getDataFont(
038:                        false));
039:                autoColWidth.setSelected(Settings.getInstance()
040:                        .getAutomaticOptimalWidth());
041:                includeHeaderWidth.setSelected(Settings.getInstance()
042:                        .getIncludeHeaderInOptimalWidth());
043:                minColSizeField.setText(Integer.toString(Settings.getInstance()
044:                        .getMinColumnWidth()));
045:                maxColSizeField.setText(Integer.toString(Settings.getInstance()
046:                        .getMaxColumnWidth()));
047:                nullColor.setSelectedColor(Settings.getInstance()
048:                        .getNullColor());
049:            }
050:
051:            public void saveSettings() {
052:                Settings set = Settings.getInstance();
053:                set.setUseAlternateRowColor(useAlternateRowColors.isSelected());
054:                set.setAlternateRowColor(alternateColor.getSelectedColor());
055:                set.setDefaultDateFormat(this .dateFormatTextField.getText());
056:                set.setDefaultTimeFormat(this .timeFormat.getText());
057:                set.setDefaultTimestampFormat(this .timestampFormatTextField
058:                        .getText());
059:                set.setMaxFractionDigits(((NumberField) this .maxDigitsField)
060:                        .getValue());
061:                set.setDecimalSymbol(this .decimalField.getText());
062:                set.setAllowRowHeightResizing(rowHeightResize.isSelected());
063:                set.setDataFont(dataFont.getSelectedFont());
064:                set.setMaxColumnWidth(((NumberField) this .maxColSizeField)
065:                        .getValue());
066:                set.setMinColumnWidth(((NumberField) this .minColSizeField)
067:                        .getValue());
068:                set.setAutomaticOptimalWidth(autoColWidth.isSelected());
069:                set.setIncludeHeaderInOptimalWidth(includeHeaderWidth
070:                        .isSelected());
071:                set.setNullColor(nullColor.getSelectedColor());
072:            }
073:
074:            /** This method is called from within the constructor to
075:             * initialize the form.
076:             * WARNING: Do NOT modify this code. The content of this method is
077:             * always regenerated by the Form Editor.
078:             */
079:            // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
080:            private void initComponents() {
081:                java.awt.GridBagConstraints gridBagConstraints;
082:
083:                dateFormatLabel = new javax.swing.JLabel();
084:                dateFormatTextField = new javax.swing.JTextField();
085:                decimalLabel = new javax.swing.JLabel();
086:                decimalField = new javax.swing.JTextField();
087:                maxDigitsLabel = new javax.swing.JLabel();
088:                maxDigitsField = new NumberField();
089:                jPanel1 = new javax.swing.JPanel();
090:                timestampFormatLabel = new javax.swing.JLabel();
091:                timestampFormatTextField = new javax.swing.JTextField();
092:                timeFormatLabel = new javax.swing.JLabel();
093:                timeFormat = new javax.swing.JTextField();
094:                dataFontLabel = new javax.swing.JLabel();
095:                dataFont = new workbench.gui.components.WbFontPicker();
096:                maxColSizeLabel = new javax.swing.JLabel();
097:                maxColSizeField = new NumberField();
098:                includeHeaderWidth = new javax.swing.JCheckBox();
099:                includeHeaderWidthLabel = new WbCheckBoxLabel();
100:                autoColWidthLabel = new WbCheckBoxLabel();
101:                autoColWidth = new javax.swing.JCheckBox();
102:                rowHeightResize = new javax.swing.JCheckBox();
103:                labelRowHeight = new WbCheckBoxLabel();
104:                minColSizeField = new NumberField();
105:                minColSizeLabel = new javax.swing.JLabel();
106:                alternatingColorsLabel = new WbCheckBoxLabel();
107:                useAlternateRowColors = new javax.swing.JCheckBox();
108:                alternateColorLabel = new javax.swing.JLabel();
109:                alternateColor = new workbench.gui.components.WbColorPicker();
110:                nullColor = new WbColorPicker(true);
111:                nullColorLabel = new javax.swing.JLabel();
112:
113:                setLayout(new java.awt.GridBagLayout());
114:
115:                dateFormatLabel.setText(ResourceMgr.getString("LblDateFormat"));
116:                dateFormatLabel.setToolTipText(ResourceMgr
117:                        .getDescription("LblDateFormat"));
118:                gridBagConstraints = new java.awt.GridBagConstraints();
119:                gridBagConstraints.gridx = 0;
120:                gridBagConstraints.gridy = 2;
121:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
122:                gridBagConstraints.insets = new java.awt.Insets(6, 12, 0, 0);
123:                add(dateFormatLabel, gridBagConstraints);
124:
125:                dateFormatTextField.setText(Settings.getInstance()
126:                        .getDefaultDateFormat());
127:                gridBagConstraints = new java.awt.GridBagConstraints();
128:                gridBagConstraints.gridx = 1;
129:                gridBagConstraints.gridy = 2;
130:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
131:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
132:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
133:                gridBagConstraints.weightx = 1.0;
134:                gridBagConstraints.insets = new java.awt.Insets(6, 10, 0, 15);
135:                add(dateFormatTextField, gridBagConstraints);
136:
137:                decimalLabel.setText(ResourceMgr.getString("LblDecimalSymbol"));
138:                decimalLabel.setToolTipText(ResourceMgr
139:                        .getDescription("LblDecimalSymbol"));
140:                gridBagConstraints = new java.awt.GridBagConstraints();
141:                gridBagConstraints.gridx = 0;
142:                gridBagConstraints.gridy = 5;
143:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
144:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
145:                add(decimalLabel, gridBagConstraints);
146:
147:                decimalField.setText(Settings.getInstance().getDecimalSymbol());
148:                gridBagConstraints = new java.awt.GridBagConstraints();
149:                gridBagConstraints.gridx = 1;
150:                gridBagConstraints.gridy = 5;
151:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
152:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
153:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
154:                gridBagConstraints.insets = new java.awt.Insets(4, 10, 0, 15);
155:                add(decimalField, gridBagConstraints);
156:
157:                maxDigitsLabel.setText(ResourceMgr.getString("LblMaxDigits"));
158:                maxDigitsLabel.setToolTipText(ResourceMgr
159:                        .getDescription("LblMaxDigits"));
160:                gridBagConstraints = new java.awt.GridBagConstraints();
161:                gridBagConstraints.gridx = 0;
162:                gridBagConstraints.gridy = 6;
163:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
164:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
165:                add(maxDigitsLabel, gridBagConstraints);
166:
167:                maxDigitsField.setText(Integer.toString(Settings.getInstance()
168:                        .getMaxFractionDigits()));
169:                gridBagConstraints = new java.awt.GridBagConstraints();
170:                gridBagConstraints.gridx = 1;
171:                gridBagConstraints.gridy = 6;
172:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
173:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
174:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
175:                gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 15);
176:                add(maxDigitsField, gridBagConstraints);
177:                gridBagConstraints = new java.awt.GridBagConstraints();
178:                gridBagConstraints.gridx = 0;
179:                gridBagConstraints.gridy = 15;
180:                gridBagConstraints.weighty = 1.0;
181:                add(jPanel1, gridBagConstraints);
182:
183:                timestampFormatLabel.setText(ResourceMgr
184:                        .getString("LblTimestampFormat"));
185:                timestampFormatLabel.setToolTipText(ResourceMgr
186:                        .getDescription("LblTimestampFormat"));
187:                gridBagConstraints = new java.awt.GridBagConstraints();
188:                gridBagConstraints.gridx = 0;
189:                gridBagConstraints.gridy = 3;
190:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
191:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
192:                add(timestampFormatLabel, gridBagConstraints);
193:
194:                timestampFormatTextField.setText(Settings.getInstance()
195:                        .getDefaultTimestampFormat());
196:                gridBagConstraints = new java.awt.GridBagConstraints();
197:                gridBagConstraints.gridx = 1;
198:                gridBagConstraints.gridy = 3;
199:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
200:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
201:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
202:                gridBagConstraints.insets = new java.awt.Insets(4, 10, 0, 15);
203:                add(timestampFormatTextField, gridBagConstraints);
204:
205:                timeFormatLabel.setText(ResourceMgr.getString("LblTimeFormat"));
206:                timeFormatLabel.setToolTipText(ResourceMgr
207:                        .getDescription("LblTimeFormat"));
208:                gridBagConstraints = new java.awt.GridBagConstraints();
209:                gridBagConstraints.gridx = 0;
210:                gridBagConstraints.gridy = 4;
211:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
212:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
213:                add(timeFormatLabel, gridBagConstraints);
214:
215:                timeFormat.setText(Settings.getInstance()
216:                        .getDefaultTimeFormat());
217:                gridBagConstraints = new java.awt.GridBagConstraints();
218:                gridBagConstraints.gridx = 1;
219:                gridBagConstraints.gridy = 4;
220:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
221:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
222:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
223:                gridBagConstraints.insets = new java.awt.Insets(4, 10, 0, 15);
224:                add(timeFormat, gridBagConstraints);
225:
226:                dataFontLabel.setText(ResourceMgr.getString("LblDataFont"));
227:                dataFontLabel.setToolTipText(ResourceMgr
228:                        .getDescription("LblDataFont"));
229:                gridBagConstraints = new java.awt.GridBagConstraints();
230:                gridBagConstraints.gridx = 0;
231:                gridBagConstraints.gridy = 0;
232:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
233:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
234:                gridBagConstraints.insets = new java.awt.Insets(5, 12, 0, 0);
235:                add(dataFontLabel, gridBagConstraints);
236:                gridBagConstraints = new java.awt.GridBagConstraints();
237:                gridBagConstraints.gridx = 1;
238:                gridBagConstraints.gridy = 0;
239:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
240:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
241:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
242:                gridBagConstraints.insets = new java.awt.Insets(5, 8, 0, 15);
243:                add(dataFont, gridBagConstraints);
244:
245:                maxColSizeLabel.setText(ResourceMgr.getString("LblMaxColsize"));
246:                maxColSizeLabel.setToolTipText(ResourceMgr
247:                        .getDescription("LblMaxColsize"));
248:                gridBagConstraints = new java.awt.GridBagConstraints();
249:                gridBagConstraints.gridx = 0;
250:                gridBagConstraints.gridy = 12;
251:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
252:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
253:                add(maxColSizeLabel, gridBagConstraints);
254:                gridBagConstraints = new java.awt.GridBagConstraints();
255:                gridBagConstraints.gridx = 1;
256:                gridBagConstraints.gridy = 12;
257:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
258:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
259:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
260:                gridBagConstraints.insets = new java.awt.Insets(7, 8, 0, 15);
261:                add(maxColSizeField, gridBagConstraints);
262:
263:                includeHeaderWidth.setBorder(javax.swing.BorderFactory
264:                        .createEmptyBorder(0, 0, 0, 0));
265:                includeHeaderWidth.setMargin(new java.awt.Insets(0, 0, 0, 0));
266:                gridBagConstraints = new java.awt.GridBagConstraints();
267:                gridBagConstraints.gridx = 3;
268:                gridBagConstraints.gridy = 10;
269:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
270:                gridBagConstraints.insets = new java.awt.Insets(11, 8, 0, 0);
271:                add(includeHeaderWidth, gridBagConstraints);
272:
273:                includeHeaderWidthLabel.setLabelFor(includeHeaderWidth);
274:                includeHeaderWidthLabel.setText(ResourceMgr
275:                        .getString("LblIncludeHeaderColWidth"));
276:                includeHeaderWidthLabel.setToolTipText(ResourceMgr
277:                        .getDescription("LblIncludeHeaderColWidth"));
278:                gridBagConstraints = new java.awt.GridBagConstraints();
279:                gridBagConstraints.gridx = 2;
280:                gridBagConstraints.gridy = 10;
281:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
282:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
283:                add(includeHeaderWidthLabel, gridBagConstraints);
284:
285:                autoColWidthLabel.setLabelFor(autoColWidth);
286:                autoColWidthLabel.setText(ResourceMgr
287:                        .getString("LblAutoColWidth"));
288:                autoColWidthLabel.setToolTipText(ResourceMgr
289:                        .getDescription("LblAutoColWidth"));
290:                gridBagConstraints = new java.awt.GridBagConstraints();
291:                gridBagConstraints.gridx = 0;
292:                gridBagConstraints.gridy = 10;
293:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
294:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
295:                add(autoColWidthLabel, gridBagConstraints);
296:
297:                autoColWidth.setBorder(javax.swing.BorderFactory
298:                        .createEmptyBorder(0, 0, 0, 0));
299:                autoColWidth.setMargin(new java.awt.Insets(0, 0, 0, 0));
300:                gridBagConstraints = new java.awt.GridBagConstraints();
301:                gridBagConstraints.gridx = 1;
302:                gridBagConstraints.gridy = 10;
303:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
304:                gridBagConstraints.insets = new java.awt.Insets(11, 8, 0, 0);
305:                add(autoColWidth, gridBagConstraints);
306:
307:                rowHeightResize.setSelected(Settings.getInstance()
308:                        .getAllowRowHeightResizing());
309:                rowHeightResize.setBorder(null);
310:                rowHeightResize
311:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
312:                rowHeightResize
313:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
314:                rowHeightResize.setIconTextGap(5);
315:                gridBagConstraints = new java.awt.GridBagConstraints();
316:                gridBagConstraints.gridx = 1;
317:                gridBagConstraints.gridy = 9;
318:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
319:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
320:                gridBagConstraints.insets = new java.awt.Insets(9, 9, 0, 11);
321:                add(rowHeightResize, gridBagConstraints);
322:
323:                labelRowHeight.setLabelFor(rowHeightResize);
324:                labelRowHeight.setText(ResourceMgr.getString("LblRowResize"));
325:                labelRowHeight.setToolTipText(ResourceMgr
326:                        .getDescription("LblRowResize"));
327:                gridBagConstraints = new java.awt.GridBagConstraints();
328:                gridBagConstraints.gridx = 0;
329:                gridBagConstraints.gridy = 9;
330:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
331:                gridBagConstraints.insets = new java.awt.Insets(8, 12, 0, 0);
332:                add(labelRowHeight, gridBagConstraints);
333:                gridBagConstraints = new java.awt.GridBagConstraints();
334:                gridBagConstraints.gridx = 1;
335:                gridBagConstraints.gridy = 13;
336:                gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
337:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
338:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
339:                gridBagConstraints.weightx = 1.0;
340:                gridBagConstraints.insets = new java.awt.Insets(6, 8, 0, 15);
341:                add(minColSizeField, gridBagConstraints);
342:
343:                minColSizeLabel.setText(ResourceMgr.getString("LblMinColsize"));
344:                minColSizeLabel.setToolTipText(ResourceMgr
345:                        .getDescription("LblMinColsize"));
346:                gridBagConstraints = new java.awt.GridBagConstraints();
347:                gridBagConstraints.gridx = 0;
348:                gridBagConstraints.gridy = 13;
349:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
350:                gridBagConstraints.insets = new java.awt.Insets(8, 12, 0, 0);
351:                add(minColSizeLabel, gridBagConstraints);
352:
353:                alternatingColorsLabel.setLabelFor(useAlternateRowColors);
354:                alternatingColorsLabel.setText(ResourceMgr
355:                        .getString("LblUseAltRowColor"));
356:                alternatingColorsLabel.setToolTipText(ResourceMgr
357:                        .getDescription("LblUseAltRowColor"));
358:                gridBagConstraints = new java.awt.GridBagConstraints();
359:                gridBagConstraints.gridx = 0;
360:                gridBagConstraints.gridy = 7;
361:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
362:                gridBagConstraints.insets = new java.awt.Insets(10, 12, 0, 0);
363:                add(alternatingColorsLabel, gridBagConstraints);
364:
365:                useAlternateRowColors.setFont(null);
366:                useAlternateRowColors.setSelected(Settings.getInstance()
367:                        .getUseAlternateRowColor());
368:                useAlternateRowColors.setBorder(null);
369:                useAlternateRowColors
370:                        .setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
371:                useAlternateRowColors
372:                        .setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
373:                useAlternateRowColors.setIconTextGap(5);
374:                gridBagConstraints = new java.awt.GridBagConstraints();
375:                gridBagConstraints.gridx = 1;
376:                gridBagConstraints.gridy = 7;
377:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
378:                gridBagConstraints.insets = new java.awt.Insets(11, 9, 0, 0);
379:                add(useAlternateRowColors, gridBagConstraints);
380:
381:                alternateColorLabel.setText(ResourceMgr
382:                        .getString("LblAlternateRowColor"));
383:                alternateColorLabel.setToolTipText(ResourceMgr
384:                        .getDescription("LblAlternateRowColor"));
385:                gridBagConstraints = new java.awt.GridBagConstraints();
386:                gridBagConstraints.gridx = 2;
387:                gridBagConstraints.gridy = 7;
388:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
389:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
390:                gridBagConstraints.insets = new java.awt.Insets(10, 8, 0, 0);
391:                add(alternateColorLabel, gridBagConstraints);
392:                gridBagConstraints = new java.awt.GridBagConstraints();
393:                gridBagConstraints.gridx = 3;
394:                gridBagConstraints.gridy = 7;
395:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
396:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
397:                gridBagConstraints.insets = new java.awt.Insets(6, 4, 0, 25);
398:                add(alternateColor, gridBagConstraints);
399:                gridBagConstraints = new java.awt.GridBagConstraints();
400:                gridBagConstraints.gridx = 1;
401:                gridBagConstraints.gridy = 8;
402:                gridBagConstraints.gridwidth = 3;
403:                gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
404:                gridBagConstraints.insets = new java.awt.Insets(3, 3, 0, 0);
405:                add(nullColor, gridBagConstraints);
406:
407:                nullColorLabel.setText(ResourceMgr
408:                        .getString("LblNullValueColor"));
409:                nullColorLabel.setToolTipText(ResourceMgr
410:                        .getDescription("LblNullValueColor"));
411:                gridBagConstraints = new java.awt.GridBagConstraints();
412:                gridBagConstraints.gridx = 0;
413:                gridBagConstraints.gridy = 8;
414:                gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
415:                gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
416:                gridBagConstraints.insets = new java.awt.Insets(4, 12, 0, 0);
417:                add(nullColorLabel, gridBagConstraints);
418:            }// </editor-fold>//GEN-END:initComponents
419:
420:            // Variables declaration - do not modify//GEN-BEGIN:variables
421:            private workbench.gui.components.WbColorPicker alternateColor;
422:            private javax.swing.JLabel alternateColorLabel;
423:            private javax.swing.JLabel alternatingColorsLabel;
424:            private javax.swing.JCheckBox autoColWidth;
425:            private javax.swing.JLabel autoColWidthLabel;
426:            private workbench.gui.components.WbFontPicker dataFont;
427:            private javax.swing.JLabel dataFontLabel;
428:            private javax.swing.JLabel dateFormatLabel;
429:            private javax.swing.JTextField dateFormatTextField;
430:            private javax.swing.JTextField decimalField;
431:            private javax.swing.JLabel decimalLabel;
432:            private javax.swing.JCheckBox includeHeaderWidth;
433:            private javax.swing.JLabel includeHeaderWidthLabel;
434:            private javax.swing.JPanel jPanel1;
435:            private javax.swing.JLabel labelRowHeight;
436:            private javax.swing.JTextField maxColSizeField;
437:            private javax.swing.JLabel maxColSizeLabel;
438:            private javax.swing.JTextField maxDigitsField;
439:            private javax.swing.JLabel maxDigitsLabel;
440:            private javax.swing.JTextField minColSizeField;
441:            private javax.swing.JLabel minColSizeLabel;
442:            private workbench.gui.components.WbColorPicker nullColor;
443:            private javax.swing.JLabel nullColorLabel;
444:            private javax.swing.JCheckBox rowHeightResize;
445:            private javax.swing.JTextField timeFormat;
446:            private javax.swing.JLabel timeFormatLabel;
447:            private javax.swing.JLabel timestampFormatLabel;
448:            private javax.swing.JTextField timestampFormatTextField;
449:            private javax.swing.JCheckBox useAlternateRowColors;
450:            // End of variables declaration//GEN-END:variables
451:
452:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.