Home » » Swing concepts in Java Program

Swing concepts in Java Program

Swing concepts in Java Program

Swing concepts in Java Program

Swing concepts in Java Program

import java.io.*;
import javax.swing.*;
import java.awt.event.*;
class TextTest
{
public Static void main(String args[]) 
{
JFrame frame =new JFrame();
Container cp =frame.getContentPanel();
JPanel panel =new JPanel();
JTextField textField =new JTextFile(20);
textField.SetFont(new Font("arial",Font.BOLD,14));
textField.setEditable(false);
textField.setText("Enter Text");
panel.add(textField);
cp.add(panel);
frame.pack();
frame.setDefaultClose.Operation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}

}

0 coment�rios:

Post a Comment

Link you don't want to vouch for Read more: https://html.com/seo/#ixzz5zVltiZ5g