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 LetterLayout("T", "T", "B").setBorder(10));
|
13 | |
14 | final JTextArea textArea = new JTextArea(); |
15 | panel.add("T", new JScrollPane(textArea));
|
16 | |
17 | JButton btnBla = new JButton("Bla");
|
18 | panel.add("B", new CenteredLine(btnBla));
|
19 | |
20 | frame.add(panel); |
21 | frame.setBounds(100, 100, 500, 400); |
22 | frame.setVisible(true); |
23 | exitOnFrameClose(frame); |
24 | } |
25 | } |
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: | 1015 / 898 |
| Referenced in: | [show references] |