try to comment out the line myPanel.setLayout( null ); to things start to clear...
Alessandro --- Klaus-Dieter Weimer <[EMAIL PROTECTED]> escreveu: > Hi, > > I try to display a window as a combination of two panels. > Panel 1 has the output of Canvas3D and is displayed on the screen. > > Panel 2 should have the selection part for the operator and is not! > displayed. > > My code is: > > public MyView( Canvas3D canvas3D, String title ) { > super( title ); > > setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > > JPanel panel = new JPanel(); > panel.setLayout( new GridLayout( 1, 1 ) ); > panel.add( canvas3D ); > > setSize( 750, 650 ); > > // set Panel_2 > JPanel myPanel = new JPanel(); > > myPanel.setLayout( null ); > myPanel.setBackground( Color.WHITE ); > > label1 = new JLabel( "Geometry Object" ); > label1.setBounds( 10, 10, 100, 20 ); > myPanel.add( label1 ); > > cbox1 = new JComboBox( GEOMETRY_OBJECTS ); > cbox1.setBounds( 120, 10, 100, 20 ); > cbox1.setToolTipText( "Select your Object!" ); > myPanel.add( cbox1 ); > > > label2 = new JLabel( "Object Mode" ); > label2.setBounds( 10, 50, 100, 20 ); > myPanel.add( label2 ); > > cbox2 = new JComboBox( OBJECT_MODES ); > cbox2.setBounds( 120, 50, 100, 20 ); > cbox2.setToolTipText( "Select your Mode!" ); > myPanel.add( cbox2 ); > > // set MAIN-Panel > getContentPane().setLayout( new BorderLayout() ); > getContentPane().add( panel, BorderLayout.CENTER ); > getContentPane().add( myPanel, BorderLayout.EAST ); > > show(); > } > > Thanks in advance > > KD Weimer > _________________________________________________________ > Mit WEB.DE FreePhone® mit höchster Qualität ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?mc=021201 > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > _______________________________________________________ Yahoo! Messenger 6.0 - jogos, emoticons sonoros e muita diversão. Instale agora! http://br.download.yahoo.com/messenger/ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".