Transpiled version (1818L) is out of date.
1 | !7 |
2 | |
3 | p { |
4 | showFrame(hvgrid(ll( |
5 | ll(section(), section()), |
6 | ll(section(), section())))); |
7 | } |
8 | |
9 | import javax.swing.border.*; |
10 | |
11 | static int i; |
12 | static JComponent section() { |
13 | bool raised= odd(i++); |
14 | Border border = BorderFactory.createBevelBorder( |
15 | raised ? BevelBorder.RAISED : BevelBorder.LOWERED); |
16 | border = BorderFactory.createTitledBorder(border, |
17 | (raised ? "Raised" : "Lowered") + " Section"); |
18 | JComponent c = jcenteredLabel("bla"); |
19 | JPanel panel = new SingleComponentPanel(c); |
20 | panel.setBorder(border); |
21 | ret panel; |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006227 |
Snippet name: | Make window with sections (BevelBorder, WORKS) => see jSection |
Eternal ID of this version: | #1006227/1 |
Text MD5: | 4156688d4e2ad6b4d93ed37a429bf4aa |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-01 18:52:09 |
Source code size: | 555 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 531 / 666 |
Referenced in: | [show references] |