Libraryless. Click here for Pure Java version (2085L/13K).
1 | import javax.swing.border.*; |
2 | |
3 | static JPanel centerSection(JPanel section) { |
4 | if (section != null) swing { |
5 | Border border = section.getBorder(); |
6 | if (border cast TitledBorder) |
7 | border.setTitleJustification(TitledBorder.CENTER); |
8 | } |
9 | ret section; |
10 | } |
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: | 298 / 407 |
Version history: | 5 change(s) |
Referenced in: | [show references] |