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

21
LINES

< > BotCompany Repo | #2000527 // Single-frame UI prelude/postlude

New Tinybrain snippet

!629 // standard function adder
!592 // auto-import
!614 // actionListener {
!619 // standard classes (LetterLayout, CenteredLine)

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

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

Author comment

Began life as a copy of #1000288

download  show line numbers   

Snippet is not live.

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #2000527
Snippet name: Single-frame UI prelude/postlude
Eternal ID of this version: #2000527/1
Text MD5: ea11ecb5b9722539c16e7a67756e19c6
Author: stefan
Category: javax
Type: New Tinybrain snippet
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-22 01:15:15
Source code size: 474 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 570 / 143
Referenced in: [show references]