|
>Ol�
lista, >algu�m j� usou o component JDesktopPane ou tem algum exemplo? Estou pensando em fazer um app >como se fosse um formul�rio mdi.... import javax.swing.*; import java.awt.*; public class DesktopPaneTest extends JFrame { public DesktopPaneTest(String nome) { super(nome); Container framePane = this.getContentPane(); JInternalFrame if1 = new JInternalFrame("Um", true, true, true); JInternalFrame if2 = new JInternalFrame("Dois", true, true, true); if1.getContentPane().add(new JEditorPane()); if2.getContentPane().add(new JEditorPane()); if1.setBounds(20,20, 250,200); if2.setBounds(70,70, 250,200); if1.setVisible(true); if2.setVisible(true); JDesktopPane dtp = new JDesktopPane(); dtp.add(if1); dtp.add(if2); framePane.add(BorderLayout.CENTER, dtp); this.setSize(400,350); this.setVisible(true); } } |
- [java-list] JDesktopPane L�via Silva Santos
- Helder da Rocha
