21
LINES
< > BotCompany Repo | #659
// Image classes test (show a green rectangle)
1 | !636
|
2 | !629 // standard functions
|
3 | !658 // image classes
|
4 |
|
5 | import java.awt.*;
|
6 | import java.awt.image.*;
|
7 | import java.util.List;
|
8 |
|
9 | public class main {
|
10 | public static void main(String[] args) {
|
11 | JFrame frame = new JFrame("A JavaX Frame");
|
12 |
|
13 | RGBImage image = new RGBImage(10, 10, Color.green);
|
14 | ImageSurface panel = new ImageSurface(image);
|
15 |
|
16 | frame.add(panel);
|
17 | frame.setBounds(100, 100, 500, 400);
|
18 | frame.setVisible(true);
|
19 | exitOnFrameClose(frame);
|
20 | }
|
21 | }
|
Author comment
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, kmhbujppghqa, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, qbtsjoyahagl, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID |
Author/Program |
Comment |
Date |
73 | stefan | Works! (Displays a green box.) | 2015-07-13 04:34:05 |
add comment
Snippet ID: |
#659 |
Snippet name: |
Image classes test (show a green rectangle) |
Eternal ID of this version: |
#659/1 |
Text MD5: |
78b8a066804262f8808afac2e329ced5 |
Author: |
stefan |
Category: |
|
Type: |
JavaX source code |
Public (visible to everyone): |
Yes |
Archived (hidden from active list): |
No |
Created/modified: |
2015-08-04 20:12:59 |
Source code size: |
497 bytes / 21 lines |
Pitched / IR pitched: |
No / Yes |
Views / Downloads: |
1100 / 943 |
Referenced in: |
[show references] |