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

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1016951
Snippet name:
Category, Type:
Content:
import javax.swing.border.TitledBorder; static JPanel jCenteredSection(Component c) { ret jCenteredSection("", c); } static JPanel jCenteredSection(fS title, final Component c) { ret swing(func -> JPanel { JPanel p = jSection(title, c); ((TitledBorder) p.getBorder()).setTitleJustification(TitledBorder.CENTER); ret p; }); } static JPanel jCenteredSection(S title) { ret jCenteredSection(title, jpanel()); }
Comment:
Public (visible to everyone):
Created: 2018-07-09 14:01:23

This page without fancy editor.