Transpiled version (1818L) is out of date.
!7 p { showFrame(hvgrid(ll( ll(section(), section()), ll(section(), section())))); } import javax.swing.border.*; static int i; static JComponent section() { bool raised= odd(i++); Border border = BorderFactory.createBevelBorder( raised ? BevelBorder.RAISED : BevelBorder.LOWERED); border = BorderFactory.createTitledBorder(border, (raised ? "Raised" : "Lowered") + " Section"); JComponent c = jcenteredLabel("bla"); JPanel panel = new SingleComponentPanel(c); panel.setBorder(border); ret panel; }
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: | 820 / 1011 | 
| Referenced in: | #1006229 - Test jSection |