Main (3)

background image

Main.java

01: //Plik: 03 DziedziczKonstr/Main.java
02:
03: import javax.swing.*;
04: import java.awt.Color;
05:
06: public class Main {
07:

public static void main(String[] args) {

08:

Point pt = new Pixel(1,1);

09:

Pixel px = new Pixel(new Color(255,51,102));

10:

px.translate(5,4).scale(2,3).translate(-1,-3);

11:

System.out.println("px: " + px);

12:

System.out.println("pt: " + pt);

13:
14:

JOptionPane.showMessageDialog(null,

15:

"<html>px: <font color=\"#FF00FF\">" + px);

16:
17:

System.exit(0);

18:

}

19: }

1


Wyszukiwarka

Podobne podstrony:
Pirates of the Spanish Main Smuggler's Song
C20090551288 B9780323067942000420 main
C20090551288 B9780323067942000055 main
P000476 D Eng Main dimensions
C20090551288 B9780323067942000407 main
juma rx1 main SCH Rev E
1 s2 0 S0020025512001946 main
C20090551288 B9780323067942000225 main
1 s2 0 S0378382002000085 main
MAIN
main sch
C20090551288 B9780323067942000432 main
C20090551288 B9780323067942000547 main
main podanie I3HATZONEHMZNWFPG7PR3QOMEONTKHMZEET5RKQ
C20090551288 B9780323067942000298 main
ZEUS PRO MAIN PART LIST
1 s2 0 S0304397599001000 main
1 s2 0 S0006291X05021595 main
1 s2 0 S0040603111000104 main 2

więcej podobnych podstron