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

19
LINES

< > BotCompany Repo | #1035074 // showFormTitled (+ showForm_makePanel) - show input form [Swing, backup]

JavaX fragment (include)

1  
static int showForm_defaultGap = 4;
2  
static int showForm_gapBetweenColumns = 10;
3  
4  
static JPanel showFormTitled(fS title, fO... _parts) {
5  
  JDesktopPane desktop = mainDesktopPane();
6  
  if (desktop != null) ret showInternalFrameFormTitled(desktop, title, _parts);
7  
  ret swing(func -> JPanel {
8  
    final new Var<JFrame> frame;
9  
    JPanel panel = showForm_makePanel(false, _parts);
10  
    showForm_makeFrame(title, panel);
11  
    frame.set(getFrame(panel));
12  
    ret panel;
13  
  });
14  
}
15  
16  
static JPanel showForm_makePanel(Bool internalFrame, O... _parts) {
17  
  L<JComponent> out = showForm_arrange1(showForm_makeComponents(internalFrame, _parts));
18  
  ret vstackWithSpacing(out, showForm_defaultGap);
19  
}

Author comment

Began life as a copy of #1004442

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035074
Snippet name: showFormTitled (+ showForm_makePanel) - show input form [Swing, backup]
Eternal ID of this version: #1035074/1
Text MD5: 80f3f766f6d9f216f18d3e99a3e6c4dc
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-29 16:09:07
Source code size: 697 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 56 / 69
Referenced in: [show references]