double size[][] = {{f}, {0.5,p,2,p,0.5}}; tbl = new TableLayout(size);
if(this instanceof ListSelector) { double size[][] = {{f}, {2,p,2,f,2}}; tbl = new TableLayout(size); } else { double size[][] = {{f}, {0.5,p,2,p,0.5}}; tbl = new TableLayout(size); }
        public void init()        {                //gbl = new GridBagLayout();                //setLayout( gbl );				double p = TableLayout.PREFERRED;				double f = TableLayout.FILL;				TableLayout tbl;				if(vertical == 1) {					double size[][] = {{f}, {0.5,p,2,p,0.5}};					tbl = new TableLayout(size);				}				else {					if(getTypeName().compareTo("Toggle") == 0 && orientation != LEFT) {						double size[][] = {{0.5, 18, p, 0.5},{f}};						tbl = new TableLayout(size);					} else {						double size[][] = {{0.5, p, p, 0.5},{f}};						tbl = new TableLayout(size);					}				}				setLayout( tbl );				                if ( developer == 1 ) {                        setBackground( new Color( 0x5f, 0x9e, 0xa0 ) );                        setForeground( Color.white );                }                try {                        if ( label_lines > 0 ) {                                if ( label == null )                                        label = new LabelGroup( label_lines );								//label.setFont( new Font("Default", Font.BOLD, 10 ) );                                label.setFont( new Font( "Helvetica", Font.BOLD, 10 ) );                                label.init();                                if ( developer == 1 ) {                                        label.setBackground( new Color( 0x5f, 0x9e, 0xa0 ) );                                        label.setForeground( Color.white );                                }                                if ( vertical == 1 ) {                                        label.setAlignment( Label.CENTER );										add(label, "0, 1, c, b");                                }                                else {                                        label.setAlignment( Label.LEFT );                                        if(orientation == LEFT) 											add(label, "1, 0, r, c");										else 											add(label, "2, 0, l, c");                                }                        }                        createPart();                        //ipart.setFont( new Font("Default", Font.BOLD, 10) );                        ipart.setFont( new Font( "Helvetica", Font.BOLD, 10 ) );                        if ( developer == 1 ) {                                ipart.setBackground( new Color( 0x5f, 0x9e, 0xa0 ) );                                //ipart.setForeground(Color.white);                        }                        if ( vertical == 1 ) {                                int fill_rule = this.getVerticalFill();                                add(ipart, "0, 3, c, t");                        }                        else {                        		if(orientation == LEFT)                                	add(ipart, "2, 0, l, c");                                else                                	add(ipart, "1, 0, r, c");                        }                }                catch ( Exception e ) {                        e.printStackTrace();                }        }