JGraphicsText
JGraphicsText
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("JGraphicsText", 300, 50);
Color txtcolor=new Color(0,0,0);
setForeground(txtcolor);
Color bgcolor=new Color(223,164,164);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("JGraphicsText");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */
JGraphicsText
JGraphicsText
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("JGraphicsText", 300, 50);
Color txtcolor=new Color(0,0,0);
setForeground(txtcolor);
Color bgcolor=new Color(255,255,255);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("JGraphicsText");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */
User type
User type
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("User type", 300, 50);
Color txtcolor=new Color(0,0,0);
setForeground(txtcolor);
Color bgcolor=new Color(255,255,255);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("User type");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */
User Type
User Type
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("User Type", 300, 50);
Color txtcolor=new Color(0,0,0);
setForeground(txtcolor);
Color bgcolor=new Color(255,255,255);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("User Type");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */
JGraphicsText
JGraphicsText
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("JGraphicsText", 119, 170);
Color txtcolor=new Color(255,164,166);
setForeground(txtcolor);
Color bgcolor=new Color(47,30,30);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("JGraphicsText");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */
Text
Text
/* Copy Code */
import javax.swing.*;
import java.awt.*;
public class GetGraphics extends Canvas {
public void paint(Graphics gr) {
gr.drawString("Text", 8, 50);
Color txtcolor=new Color(0,0,0);
setForeground(txtcolor);
Color bgcolor=new Color(187,124,124);
setBackground(bgcolor);
}
public static void main(String[] args) {
GetGraphics txt=new GetGraphics();
JFrame frame=new JFrame("Text");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(txt);
frame.setSize(800,600);
frame.setVisible(true);
}
}
/* end */