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

25
LINES

< > BotCompany Repo | #1000287 // UI skeleton prototype 2 (GridLayout)

JavaX source code - run with: x30.jar

1  
!629 // standard function adder
2  
!592 // auto-import
3  
!614 // actionListener {
4  
!619 // standard classes (LetterLayout, CenteredLine)
5  
6  
import java.awt.*;
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  
    JPanel panel = new JPanel(new GridLayout(2, 1));
13  
    
14  
    final JTextArea textArea = new JTextArea();
15  
    panel.add(new JScrollPane(textArea));
16  
    
17  
    JButton btnBla = new JButton("Bla");
18  
    panel.add(new CenteredLine(btnBla));
19  
    
20  
    frame.add(panel);
21  
    frame.setBounds(100, 100, 500, 400);
22  
    frame.setVisible(true);
23  
    exitOnFrameClose(frame);
24  
  }
25  
}

Author comment

Began life as a copy of #1000286

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000287
Snippet name: UI skeleton prototype 2 (GridLayout)
Eternal ID of this version: #1000287/1
Text MD5: 02600be827f715e820164d6dfe123ae6
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-06-20 16:52:42
Source code size: 677 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 665 / 556
Referenced in: [show references]