Revision 230 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.main/src/main/java/org/gvsig/tools/main/dynobject/DynObjectComponentAction.java
DynObjectComponentAction.java | ||
---|---|---|
83 | 83 |
if (dynObjectView == null) |
84 | 84 |
return mainPane; |
85 | 85 |
|
86 |
JComponent component = (JComponent) dynObjectView.getComponent();
|
|
86 |
JComponent component = dynObjectView.getJComponent();
|
|
87 | 87 |
mainPane.add(component, BorderLayout.CENTER); |
88 | 88 |
component.setPreferredSize(new Dimension(100, 100)); |
89 | 89 |
JButton button = new JButton("Save"); |
... | ... | |
127 | 127 |
// frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); |
128 | 128 |
|
129 | 129 |
frame.getContentPane().add( |
130 |
(Component) getDynObjectView().getComponent()); |
|
130 |
(Component) getDynObjectView().getJComponent());
|
|
131 | 131 |
|
132 | 132 |
// Display the window. |
133 | 133 |
frame.pack(); |
Also available in: Unified diff