Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #659 // Image classes test (show a green rectangle)

JavaX source code - run with: x30.jar

!636

!629 // standard functions
!658 // image classes

import java.awt.*;
import java.awt.image.*;
import java.util.List;

public class main {
  public static void main(String[] args) {
    JFrame frame = new JFrame("A JavaX Frame");
    
    RGBImage image = new RGBImage(10, 10, Color.green);
    ImageSurface panel = new ImageSurface(image);
    
    frame.add(panel);
    frame.setBounds(100, 100, 500, 400);
    frame.setVisible(true);
    exitOnFrameClose(frame);
  }
}

Author comment

Began life as a copy of #2000448

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

Comments [hide]

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: 1097 / 939
Referenced in: [show references]