java.awt.Window est il un Component ?
bonjour,
j'écris ce qui suit
Code:
1 2 3
| Jdialog grandJD = new JDialog (uneJframe....
double sz[][]={{70,500,100},{90}};
grandJD. getContentPane().setLayout(new TableLayout(sz)); |
etc...puis
Code:
1 2 3
| Jdialog petitJD = new JDialog (grandJD....
double ie[][]={{50},{50}};
petitJD. getContentPane().setLayout(new TableLayout(ie)); |
etc... puis
Code:
grandJD.getContentPane().add(petitJD ,"2, 0");
pour aboutir sur un runTimeError :
IllegalArgumentException: adding a window to a container
or petitJD est un JDialog donc un Component
et grandJD.getContentPane() est un Container
dans lequel je peux inscrire un Component..
est-ce normal ?
!!! merci:bug: :bug: