or drag border to resize
Best viewed with
Firefox
Feel free to donate Bitcoin, Bitcoin Cash, Ether or Litecoin
Post this site to
JavaLessons.com
GUI, Swing
g39. JTabbedPane
Essence
JTabbedPane tp ; JPanel p1, p2 ; public void init ( ) { tp = new JTabbedPane ( ); p1 = new JPanel ( ) ; p2 = new JPanel ( ) ; lbl = new JLabel( "Ain't worth a thing ..." ); tf = new JTextField ( 20 ); bt = new JButton ( "JLessons button" ) ; lbl.setBackground ( Color.cyan ) ; lbl.setOpaque ( true ) ; p1.add ( lbl ) ; p1.add ( tf ) ; p2.add ( bt ) ; tp.addTab ( "Erste", p1 ) ; tp.addTab ( "Zweite", p2 ) ; getContentPane().add ( tp ) ; } JLabel lbl ; JTextField tf ; JButton bt ; }
Double-click to select or
JavaLessons.com
Copyright © 2000-2014 System Exclusive & Multi Midi (NL) All rights reserved
Terms, conditions, disclaimer