Newsgroup: it.comp.java
Titolo: Aiuto...mi sono perso..





Aiuto.....!!


Mi sono perso in un bicchiere d'acqua.


 


Vorrei mettere i "button" a "east" invece che in 
"center",


ma non riesco a capire come posizionarli,


come disposizione verticale,


rimangono sempre allineati in orizzontale.


 


Chi mi aiuta.....?????


Scusate ma non riesco proprio.


 


Andrea.


 


----------------------------------------------------------------------


 


 


    public void init() 
{
        
getAppletParameters();
        
setLayout(new FlowLayout());
        

        Panel panel = new 
Panel();
        if(adr1Name != null 
&& adr2Name == null || URL1Name != null && URL2Name == 
null)
            
singleAdr = true;
        
else
            
singleAdr = false;
        if(!single) 
{
            
if(adr1Name != null) 
{
                
checkbox1 = new Checkbox(" " + adr1Name + " 
");
                
checkbox1.setFont(new Font("Helvetica", 1, 
12));
                
checkbox1.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox1);
            
}
            
if(adr2Name != null) 
{
                
checkbox2 = new Checkbox(" " + adr2Name + " 
");
                
checkbox2.setFont(new Font("Helvetica", 1, 
12));
                
checkbox2.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox2);
            
}
            
if(adr3Name != null) 
{
                
checkbox3 = new Checkbox(" " + adr3Name + " 
");
                
checkbox3.setFont(new Font("Helvetica", 1, 
12));
                
checkbox3.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox3);
            
}
            
if(adr4Name != null) 
{
                
checkbox4 = new Checkbox(" " + adr4Name + " 
");
                
checkbox4.setFont(new Font("Helvetica", 1, 
12));
                
checkbox4.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox4);
            
}
            
if(adr5Name != null) 
{
                
checkbox5 = new Checkbox(" " + adr5Name + " 
");
                
checkbox5.setFont(new Font("Helvetica", 1, 
12));
                
checkbox5.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox5);
            
}
            
if(adr6Name != null) 
{
                
checkbox6 = new Checkbox(" " + adr6Name + " 
");
                
checkbox6.setFont(new Font("Helvetica", 1, 
12));
                
checkbox6.setBackground(new Color(138, 167, 
250));
                
panel.add(checkbox6);
            
}
            
add("North", panel);
        
}
        panel = new 
Panel();
        panel.add(new 
Label("testo 1 1 1 :"));
        
addressField = new TextField("", 
12);
        
addressField.setBackground(Color.white);
        
panel.add(addressField);
        search = 
new Button(" search ");
        
search.setFont(new Font("Helvetica", 1, 
14));
        
panel.add(search);
        clear = new 
Button(" clear ");
        
clear.setFont(new Font("Helvetica", 1, 
14));
        
panel.add(clear);
        abort = new 
Button(" stop ");
        
abort.setFont(new Font("Helvetica", 1, 
14));
        
panel.add(abort);
        add("Center", 
panel);
        panel = new 
Panel();
        outputArea = new 
TextArea("", 12, 60);
        
panel.add(outputArea);
        
add("South", panel);
        
outputArea.setText("testo 2 2 
2\n");
        
outputArea.setBackground(Color.white);
        
outputArea.setFont(new Font("Helvetica", 1, 
16));
        }




----------------------------------------------------------------------



 	charset="Windows-1252"
                ^^^^^^^^^^^^^^
java e` multipiattaforma: prendi esempio e se
possibile non usare un charset visualizzabile
solo con windows.
thnx
-- 
Ciao,  |  I play Russian roulette everyday, a man's sport,
Matteo |  With a bullet called life, yeah called life, (SUGAR)


Grazie,
ho risolto tutto con GridLayout
Grazie a tutti.
Andrea.