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

25
LINES

< > BotCompany Repo | #1000286 // UI skeleton prototype

JavaX source code - run with: x30.jar

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

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

public class main {
  public static void main(String[] args) {
    JFrame frame = new JFrame("A JavaX Frame");
    JPanel panel = new JPanel(new LetterLayout("T", "T", "B").setBorder(10));
    
    final JTextArea textArea = new JTextArea();
    panel.add("T", new JScrollPane(textArea));
    
    JButton btnBla = new JButton("Bla");
    panel.add("B", new CenteredLine(btnBla));
    
    frame.add(panel);
    frame.setBounds(100, 100, 500, 400);
    frame.setVisible(true);
    exitOnFrameClose(frame);
  }
}

Author comment

Began life as a copy of #613

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: #1000286
Snippet name: UI skeleton prototype
Eternal ID of this version: #1000286/1
Text MD5: faf5ab4c45ec3632f5e4daa6082d045c
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:51:06
Source code size: 712 bytes / 25 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 779 / 659
Referenced in: [show references]