Revision 369 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/JDialogContent.java
JDialogContent.java | ||
---|---|---|
33 | 33 |
protected JButton accept = null; |
34 | 34 |
private String title; |
35 | 35 |
|
36 |
public JDialogContent(ScriptingUIManager uimanager, String icon, String title, String description, final AbstractJDialogPanel content){
|
|
36 |
public JDialogContent(ScriptingUIManager uimanager, String icon, String title, String description, final DialogPanel content){ |
|
37 | 37 |
this.uimanager = uimanager; |
38 | 38 |
this.setLayout(new BorderLayout()); |
39 | 39 |
|
... | ... | |
63 | 63 |
// Contenedor central |
64 | 64 |
JPanel contentPane = new JPanel(new BorderLayout()); |
65 | 65 |
contentPane.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5)); |
66 |
content.setBorder(BorderFactory.createMatteBorder(1, 0, 1, 0, new Color(220,220,220))); |
|
67 |
contentPane.add(content, BorderLayout.CENTER); |
|
66 |
content.getJComponent().setBorder(BorderFactory.createMatteBorder(1, 0, 1, 0, new Color(220,220,220)));
|
|
67 |
contentPane.add(content.getJComponent(), BorderLayout.CENTER);
|
|
68 | 68 |
|
69 | 69 |
// Botonera |
70 | 70 |
JButton help = new JButton(uimanager.getIcon("help-browser")); |
... | ... | |
82 | 82 |
optionsPane.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); |
83 | 83 |
optionsPane.add(Box.createHorizontalGlue()); |
84 | 84 |
|
85 |
content.addComponentListener(this); |
|
85 |
content.getJComponent().addComponentListener(this);
|
|
86 | 86 |
if(content instanceof JHelpSelection){ |
87 | 87 |
((JHelpSelection) content).addDefaultActionListener(this); |
88 | 88 |
} |
Also available in: Unified diff