Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1024692 // centerSection

JavaX fragment (include) [tags: use-pretranspiled]

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;
}

Author comment

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: 201 / 286
Version history: 5 change(s)
Referenced in: [show references]