51 |
* @author Grigor Iliev |
* @author Grigor Iliev |
52 |
*/ |
*/ |
53 |
public class JSDbDirectoryPropsPane extends JPanel { |
public class JSDbDirectoryPropsPane extends JPanel { |
54 |
private final JLabel lName = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lName")); |
private final JLabel lName = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lName")); |
55 |
private final JLabel lType = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lType")); |
private final JLabel lType = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lType")); |
56 |
private final JLabel lLocation = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lLocation")); |
private final JLabel lLocation = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lLocation")); |
57 |
private final JLabel lContains = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lContains")); |
private final JLabel lContains = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lContains")); |
58 |
private final JLabel lCreated = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lCreated")); |
private final JLabel lCreated = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lCreated")); |
59 |
private final JLabel lModified = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lModified")); |
private final JLabel lModified = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lModified")); |
60 |
private final JLabel lDesc = new JLabel(i18n.getLabel("JSDbDirectoryPropsPane.lDesc")); |
private final JLabel lDesc = createLabel(i18n.getLabel("JSDbDirectoryPropsPane.lDesc")); |
61 |
|
|
62 |
private final TextArea taName = new TextArea(); |
private final JTextArea taName = createTextArea(); |
63 |
private final TextArea taType = new TextArea(); |
private final JTextArea taType = createTextArea(); |
64 |
private final TextArea taLocation = new TextArea(); |
private final JTextArea taLocation = createTextArea(); |
65 |
private final TextArea taContains = new TextArea(); |
private final JTextArea taContains = createTextArea(); |
66 |
private final TextArea taCreated = new TextArea(); |
private final JTextArea taCreated = createTextArea(); |
67 |
private final TextArea taModified = new TextArea(); |
private final JTextArea taModified = createTextArea(); |
68 |
private final TextArea taDesc = new TextArea(); |
private final JTextArea taDesc = createTextArea(); |
69 |
|
|
70 |
private DbDirectoryInfo directoryInfo; |
private DbDirectoryInfo directoryInfo; |
71 |
|
|
251 |
CC.getTaskQueue().add(t1); |
CC.getTaskQueue().add(t1); |
252 |
} |
} |
253 |
|
|
254 |
|
protected JLabel |
255 |
|
createLabel(String text) { |
256 |
|
JLabel l = new JLabel(text); |
257 |
|
l.setFont(l.getFont().deriveFont(java.awt.Font.BOLD)); |
258 |
|
return l; |
259 |
|
} |
260 |
|
|
261 |
|
protected JTextArea |
262 |
|
createTextArea() { return new TextArea(); } |
263 |
|
|
264 |
private class |
private class |
265 |
TextArea extends JTextArea { |
TextArea extends JTextArea { |
266 |
TextArea() { |
TextArea() { |
267 |
setLineWrap(true); |
setLineWrap(true); |
268 |
setEditable(false); |
setEditable(false); |
269 |
setOpaque(false); |
setOpaque(false); |
270 |
|
putClientProperty("substancelaf.noExtraElements", Boolean.TRUE); |
271 |
setBorder(BorderFactory.createEmptyBorder()); |
setBorder(BorderFactory.createEmptyBorder()); |
272 |
} |
} |
273 |
} |
} |