Libraryless. Click here for Pure Java version (40L/1K/3K).
1 | !634 // ui skeleton |
2 | |
3 | JPanel panel = new JPanel(new BorderLayout()); |
4 | |
5 | final JTextArea textArea = new JTextArea(); |
6 | panel.add(BorderLayout.CENTER, new JScrollPane(textArea)); |
7 | |
8 | final JTextField tfCmd = new JTextField(); |
9 | panel.add(BorderLayout.SOUTH, tfCmd); |
10 | |
11 | frame.addWindowListener(new WindowAdapter() { |
12 | public void windowOpened(WindowEvent e) { |
13 | tfCmd.requestFocus(); |
14 | } |
15 | }); |
Began life as a copy of #1000681
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000682 |
Snippet name: | A frame with text area and input field |
Eternal ID of this version: | #1000682/1 |
Text MD5: | a21308350305f6dba0e471867ab69eb3 |
Transpilation MD5: | 794cc28706cbf819112ef659b272af1a |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-08-22 01:16:36 |
Source code size: | 393 bytes / 15 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 618 / 659 |
Referenced in: | [show references] |