Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kasi center
30-01-2013, 04:01 AM,
Post: #1
kasi center
-sape boleh bantu macam mana hendak kasi nampak kemas ,semua nampak center.harap boleh bantu
PHP Code:
import java.awt.*;
import javax.swing.*;

public class 
Training extends JFrame{
    private 
JRadioButton GUInterface,GUIcon,GUInteractive,NoAnswer;
    
    public 
Training()
    {
        
super("woot");
        
        
Container container getContentPane();
        
container.setLayout(new FlowLayout());
        
        
        
        
GUInterface = new JRadioButton("Graphical User Interface",true);
        
container.add(GUInterface);
        
        
GUIcon = new JRadioButton("Graphics User Icon",false);
        
container.add(GUIcon);
        
        
GUInteractive = new JRadioButton("Graphical User Interactive",false);
        
container.add(GUInteractive);
        
        
NoAnswer = new JRadioButton("No Answer",false);
        
container.add(NoAnswer);
        
        
setSize(300,100);
        
setVisible(true);
    }
    
    public static 
void main(String args[])
    {
        
Training application = new Training();
        
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    

A word of advice,
don't promise only when u are HAPPY,
don't reply when u are ANGRY,
and don't decide when u are SAD.
Reply
30-01-2013, 08:10 AM,
Post: #2
RE: kasi center
ni dah nampak kemas la nih..
Reply


Forum Jump: