Hi,
I have a problem with the JClosableTabbedPane.
The regular JTabbedPane works fine but when I use JClosableTabbedPane, the tabs are not showing.
The tabs are there though, because when I click where the tab should be, the content in the tabbedpane changes.
Example script:
package;import flash.display.Sprite;import flash.Lib;import org.aswing.BorderLayout;import org.aswing.geom.IntDimension;import org.aswing.JFrame;import org.aswing.JClosableTabbedPane;import org.aswing.JTabbedPane;import org.aswing.JLabel;class ClosableTabbedPaneTest extends Sprite{ public function new() { super(); //var p = new JTabbedPane(); var p = new JClosableTabbedPane(); p.appendTab(new JLabel("hello"), "tab0"); p.appendTab(new JLabel("world"), "tab1"); var frame = new JFrame( this, "test" ); frame.setSize(new IntDimension(400, 200)); frame.getContentPane().append(p, BorderLayout.NORTH); frame.show(); } public static function main() { org.aswing.AsWingManager.setRoot(Lib.current); org.aswing.AsWingManager.initAsStandard(Lib.current); Lib.current.addChild(new ClosableTabbedPaneTest()); }}Result:
http://www.haxer.be/guests/aswing/closabletabbedpane.pngCheers,
Jan