Hello,

I try to use Apache Pivot by means of simple java (not high bmpeix or
whatever like bxml - very high solution).

So, when I try to construct a very simple hierarhy of conainers it simply
did not work - empty window (or overlapped labels). I tried diff variants -
all the same. Is there any human way to use Apache Pivot without  high bxml? 
The simple as a door java code of startup() here below:

        window = new Window();
        ScrollBar scrlBar = new ScrollBar();
        scrlBar.setSize(2000, 15);
        scrlBar.setPreferredSize(2000, 15);
        
        ScrollPane myScroll = new
ScrollPane(ScrollBarPolicy.AUTO,ScrollBarPolicy.AUTO);
        myScroll.setSize(1000,1000);
        myScroll.setPreferredSize(1000, 1000);
        
        myScroll.add(scrlBar);
        
        for (int i = 0; i < 20; i++) {
                Label lbl= new Label();
                lbl.setText("Label: "+i);
                lbl.setSize(100, 100);
                myScroll.add(lbl);
                }
        
        
        TabPane myTabPane = new TabPane();
        myTabPane.setSize(1000,1000);
        myTabPane.setPreferredSize(1000, 1000);
        
        
        myTabPane.add(myScroll);
        window.setContent(new Border(myTabPane));
        //window.setContent(new Border(myCalendarPane.getBgTablePane()));
        //window.setContent(new Calendar());
        window.setTitle("Hello World!");
        window.setMaximized(true);

=>No scrollbars or when they are show up they just does not respond.
Is there any pecularities of using ScrollPane in java code not in high ...?
What classes it can normally include? Which classes (containers) may
normally include it? ETC

Thank you!


--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/ScrollPane-does-not-work-in-the-java-code-tp3586952p3586952.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to