43 |
* @author Grigor Iliev |
* @author Grigor Iliev |
44 |
*/ |
*/ |
45 |
public class JSDbInstrumentPropsPane extends JPanel { |
public class JSDbInstrumentPropsPane extends JPanel { |
46 |
private final JLabel lName = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lName")); |
private final JLabel lName = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lName")); |
47 |
private final JLabel lLocation = |
private final JLabel lLocation = |
48 |
new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lLocation")); |
createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lLocation")); |
49 |
|
|
50 |
private final JLabel lSize = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lSize")); |
private final JLabel lSize = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lSize")); |
51 |
|
|
52 |
private final JLabel lFormat = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lFormat")); |
private final JLabel lFormat = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lFormat")); |
53 |
private final JLabel lType = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lType")); |
private final JLabel lType = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lType")); |
54 |
private final JLabel lDesc = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lDesc")); |
private final JLabel lDesc = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lDesc")); |
55 |
private final JLabel lCreated = |
private final JLabel lCreated = |
56 |
new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lCreated")); |
createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lCreated")); |
57 |
private final JLabel lModified = |
private final JLabel lModified = |
58 |
new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lModified")); |
createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lModified")); |
59 |
|
|
60 |
private final JLabel lFile = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lFile")); |
private final JLabel lFile = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lFile")); |
61 |
private final JLabel lIndex = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lIndex")); |
private final JLabel lIndex = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lIndex")); |
62 |
private final JLabel lProduct = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lProduct")); |
private final JLabel lProduct = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lProduct")); |
63 |
private final JLabel lArtists = new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lArtists")); |
private final JLabel lArtists = createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lArtists")); |
64 |
private final JLabel lKeywords = |
private final JLabel lKeywords = |
65 |
new JLabel(i18n.getLabel("JSDbInstrumentPropsPane.lKeywords")); |
createLabel(i18n.getLabel("JSDbInstrumentPropsPane.lKeywords")); |
66 |
|
|
67 |
private final TextArea taName = new TextArea(); |
private final JTextArea taName = createTextArea(); |
68 |
private final TextArea taLocation = new TextArea(); |
private final JTextArea taLocation = createTextArea(); |
69 |
private final TextArea taSize = new TextArea(); |
private final JTextArea taSize = createTextArea(); |
70 |
private final TextArea taFormat = new TextArea(); |
private final JTextArea taFormat = createTextArea(); |
71 |
private final TextArea taType = new TextArea(); |
private final JTextArea taType = createTextArea(); |
72 |
private final TextArea taDesc = new TextArea(); |
private final JTextArea taDesc = createTextArea(); |
73 |
private final TextArea taCreated = new TextArea(); |
private final JTextArea taCreated = createTextArea(); |
74 |
private final TextArea taModified = new TextArea(); |
private final JTextArea taModified = createTextArea(); |
75 |
private final TextArea taFile = new TextArea(); |
private final JTextArea taFile = createTextArea(); |
76 |
private final TextArea taIndex = new TextArea(); |
private final JTextArea taIndex = createTextArea(); |
77 |
private final TextArea taProduct = new TextArea(); |
private final JTextArea taProduct = createTextArea(); |
78 |
private final TextArea taArtists = new TextArea(); |
private final JTextArea taArtists = createTextArea(); |
79 |
private final TextArea taKeywords = new TextArea(); |
private final JTextArea taKeywords = createTextArea(); |
80 |
|
|
81 |
/** |
/** |
82 |
* Creates a new instance of <code>JSDbInstrumentPropsPane</code> |
* Creates a new instance of <code>JSDbInstrumentPropsPane</code> |
295 |
taKeywords.setText(instrInfo.getKeywords()); |
taKeywords.setText(instrInfo.getKeywords()); |
296 |
} |
} |
297 |
|
|
298 |
|
protected JLabel |
299 |
|
createLabel(String text) { |
300 |
|
JLabel l = new JLabel(text); |
301 |
|
l.setFont(l.getFont().deriveFont(java.awt.Font.BOLD)); |
302 |
|
return l; |
303 |
|
} |
304 |
|
|
305 |
|
protected JTextArea |
306 |
|
createTextArea() { return new TextArea(); } |
307 |
|
|
308 |
private class |
private class |
309 |
TextArea extends JTextArea { |
TextArea extends JTextArea { |
310 |
TextArea() { |
TextArea() { |
311 |
setLineWrap(true); |
setLineWrap(true); |
312 |
setEditable(false); |
setEditable(false); |
313 |
setOpaque(false); |
setOpaque(false); |
314 |
|
putClientProperty("substancelaf.noExtraElements", Boolean.TRUE); |
315 |
setBorder(BorderFactory.createEmptyBorder()); |
setBorder(BorderFactory.createEmptyBorder()); |
316 |
} |
} |
317 |
} |
} |