Libraryless. Click here for Pure Java version (40L/1K/3K).
!634 // ui skeleton JPanel panel = new JPanel(new BorderLayout()); final JTextArea textArea = new JTextArea(); panel.add(BorderLayout.CENTER, new JScrollPane(textArea)); final JTextField tfCmd = new JTextField(); panel.add(BorderLayout.SOUTH, tfCmd); frame.addWindowListener(new WindowAdapter() { public void windowOpened(WindowEvent e) { tfCmd.requestFocus(); } });
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: | 616 / 656 |
Referenced in: | [show references] |