[haxe] JClosableTabbedPane : tabs are invisible

21 views
Skip to first unread message

Jan Flanders

unread,
Sep 5, 2012, 5:23:07 PM9/5/12
to aswing-...@googlegroups.com
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.png

Cheers,

Jan


Jan Flanders

unread,
Sep 10, 2012, 4:36:36 PM9/10/12
to aswing-...@googlegroups.com
It seems I was (still) using haxelib aswing instead of the svn version for the test.
So, the tabs do show, but they are not closeable nor do they show the text:

http://www.haxer.be/guests/aswing/closabletabbedpane2.png

Jan
Reply all
Reply to author
Forward
0 new messages