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

18
LINES

< > BotCompany Repo | #1000763 // Swing: Show a list of strings

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (43L/1K/2K).

!747

m {
  p {
    JFrame frame = new JFrame("A List!");
    frame.setBounds(100, 100, 400, 600);
    
    String[] strings = {"Hello", "World!"};
    JList list = new JList(strings);
    
    frame.getContentPane().add(new JScrollPane(list));
    frame.setVisible(true);
    exitOnFrameClose(frame);
    
    // Not needed anymore - all VMs are now injectable.
    // injectable();
  }
}

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

Comments [hide]

ID Author/Program Comment Date
1064 #1000610 (pitcher) 2015-10-11 15:46:17
1063 #1000604 (pitcher) 2015-10-11 15:46:17

add comment

Snippet ID: #1000763
Snippet name: Swing: Show a list of strings
Eternal ID of this version: #1000763/1
Text MD5: 7b3dd2c55817bc51a39accf72163b86a
Transpilation MD5: 5ee9350fd79f3a2c41d67a17a1904ef1
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-13 21:10:33
Source code size: 406 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 744 / 779
Referenced in: [show references]