Excusez voici mon code source: Cette partie fonctionne: package peageautomobile;
import java.awt.*; import java.awt.event.*; import javax.swing.*;
public class CadrePeage extends JFrame { ... public CadrePeage() { void jMenuClientModifier_actionPerformed(ActionEvent e) { test1 f1 = new test1(); f1.setSize(400,100); f1.setVisible(true); f1.setResizable(true); desktopPane.add( f1 ); } ... } } Cette partie ne marche pas enfin au moment ou je demande d'ouvrir f2:
package peageautomobile;
import java.awt.*; import javax.swing.*; import java.awt.event.*; import com.borland.jbcl.layout.*;
/** * <p>Titre : </p> * <p>Description : </p> * <p>Copyright : Copyright (c) 2004</p> * <p>Société : </p> * @author non attribuable * @version 1.0 */
public class test1 extends JInternalFrame { JLabel jLabel1 = new JLabel(); XYLayout xYLayout1 = new XYLayout(); public test1() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } test2 f3 = new test2(); f3.setSize(400,100); f3.setVisible(true); f3.setResizable(true); } private void jbInit() throws Exception { jLabel1.setText("jLabel1"); this.getContentPane().setLayout(xYLayout1); this.getContentPane().add(jLabel1, new XYConstraints(0, 0, 394, 84)); }
}
|