Libraryless. Click here for Pure Java version (5221L/29K).
import javax.swing.border.*; sclass jLiveValueSection_class extends SingleComponentPanel { LiveValue<?> liveValue; S getTitle() { ret strOrEmpty(liveValue!); } *(LiveValue<?> lv, Component c) { super(c); bindLiveValueListenerToComponent(this, liveValue = lv, r-awt { setBorder(BorderFactory.createTitledBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED), getTitle())); revalidate(); }); } } static JPanel jLiveValueSection(LiveValue<?> lv, Component c) { ret swingNu(jLiveValueSection_class, lv, c); }
Began life as a copy of #1006228
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015895 |
Snippet name: | jLiveValueSection - jSection + LiveValue |
Eternal ID of this version: | #1015895/11 |
Text MD5: | c5ec35871828c584341bba96eabc6343 |
Transpilation MD5: | aedb5824a5879bc078ddf4234454ce7a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-14 09:12:18 |
Source code size: | 580 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 428 / 518 |
Version history: | 10 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1024693 - jCenteredLiveValueSection - jCenteredSection + LiveValue (or IGetterWithNotify) |