TODAY I WILL BE SHOWING YOU HOW TO MAKE AN ANIMATION USING JAVA. import javax.swing.*; import java.awt.*; final public class Test1 { JFrame frame; DrawPanel drawPanel; private int A = 9; private int B = 5; boolean Up = false; boolean Down = true; public static void main(String[] args) { new Test1().go(); } private DrawPanel DrawPanel; private void go() { frame = new JFrame("SHAPE ANIMATION"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); DrawPanel = new DrawPanel(); frame.getContentPane().add(BorderLayout.CENTER, DrawPanel); frame.setVisible(true); frame.setResizable(false); frame.setSize(200, 200); frame.setLocation(175, 55);b moveANIME(); } class DrawPanel extends JPanel { public void paintComponent(Graphics g) { g.setColor(Color.BLUE.darker());
WIRED 2 TECH! : Get into TECH is an innovative web-based startup that was developed to help people who want to be part of the world of information technology. We teach through self-teaching; we create simulated applications in various programming languages that are compatible with real work assignments and let you experiment with it thus helping you learn and become more comfortable with coding.