Libraryless. Click here for Pure Java version (2085L/13K).
import javax.swing.border.*; static JPanel centerSection(JPanel section) { if (section != null) swing { Border border = section.getBorder(); if (border cast TitledBorder) border.setTitleJustification(TitledBorder.CENTER); } ret section; }
Began life as a copy of #1016951
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024692 |
Snippet name: | centerSection |
Eternal ID of this version: | #1024692/6 |
Text MD5: | b2d291304ead914464a1d2130a8d8d88 |
Transpilation MD5: | 8f49603bcdab0ed9e6da782843586295 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-24 01:11:38 |
Source code size: | 268 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 299 / 407 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |