How to Create An U.I(User Interface) Using AWT In Java #1
6.1 هزار بار بازدید -
7 سال پیش
-
In this video tutorial you
In this video tutorial you can understand the concept of User Interface in Java Programming and also Under Stand the Concept of AWT and Its Component
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
path seting-
Javac is not recognized as an interna...
java doc-
how to generate documentation of java...
Connect on Socials:-
Facebook:- Facebook: AndroJavaTech4U
Twitter:- Twitter: AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:- LinkedIn: androjavatech4u
import java.awt.*;
class GuiApp
{
Frame f;
Label l,l1,l2;
TextField tf,tf1,tf2;
Button b,b1;
GuiApp()
{
f=new Frame("GuiApp");
f.setVisible(true);
f.setSize(260,200);
f.setResizable(false);
f.setBackground(Color.yellow);
f.setLocation(400,100);
System.out.println(f.getLocation());
l=new Label("Eneter First No");
l1=new Label("Eneter Second No");
l2=new Label("Result:-");
tf=new TextField(10);
tf1=new TextField(10);
tf2=new TextField(10);
b=new Button("Add");
b1=new Button("Sub");
f.setLayout(new FlowLayout());
f.add(l);
f.add(tf);
f.add(l1);
f.add(tf1);
f.add(l2);
f.add(tf2);
f.add(b);
f.add(b1);
}
public static void main(String ss[])
{
GuiApp g=new GuiApp();
}
}
Download my you tube channel Android application from here-
https://www.dropbox.com/s/stoehcarylm...
path seting-
Javac is not recognized as an interna...
java doc-
how to generate documentation of java...
Connect on Socials:-
Facebook:- Facebook: AndroJavaTech4U
Twitter:- Twitter: AndroJavaTech4U
Google Plus:- https://plus.google.com/u/0/+AndroJav...
LinkedIn:- LinkedIn: androjavatech4u
import java.awt.*;
class GuiApp
{
Frame f;
Label l,l1,l2;
TextField tf,tf1,tf2;
Button b,b1;
GuiApp()
{
f=new Frame("GuiApp");
f.setVisible(true);
f.setSize(260,200);
f.setResizable(false);
f.setBackground(Color.yellow);
f.setLocation(400,100);
System.out.println(f.getLocation());
l=new Label("Eneter First No");
l1=new Label("Eneter Second No");
l2=new Label("Result:-");
tf=new TextField(10);
tf1=new TextField(10);
tf2=new TextField(10);
b=new Button("Add");
b1=new Button("Sub");
f.setLayout(new FlowLayout());
f.add(l);
f.add(tf);
f.add(l1);
f.add(tf1);
f.add(l2);
f.add(tf2);
f.add(b);
f.add(b1);
}
public static void main(String ss[])
{
GuiApp g=new GuiApp();
}
}
7 سال پیش
در تاریخ 1396/08/06 منتشر شده
است.
6,115
بـار بازدید شده