Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Component;
- import javax.swing.*;
- public class movingBallTest {
- public movingBallTest(){
- movingBall mB = new movingBall();
- JFrame frame = new JFrame("Pallo");
- frame.setSize(400,600);
- frame.setResizable(true);
- frame.add(mB);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setVisible(true);
- }
- public static String getW(){
- return (frame.getSize().width);
- }
- public static void main(String args[]){
- new movingBallTest();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement