TBD.my

Full Version: kasi center
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
-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);
    }
    

ni dah nampak kemas la nih..