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)

static int showForm_defaultGap = 4;
static int showForm_gapBetweenColumns = 10;

static JPanel showFormTitled(fS title, fO... _parts) {
  JDesktopPane desktop = mainDesktopPane();
  if (desktop != null) ret showInternalFrameFormTitled(desktop, title, _parts);
  ret swing(func -> JPanel {
    final new Var<JFrame> frame;
    JPanel panel = showForm_makePanel(false, _parts);
    showForm_makeFrame(title, panel);
    frame.set(getFrame(panel));
    ret panel;
  });
}

static JPanel showForm_makePanel(Bool internalFrame, O... _parts) {
  L<JComponent> out = showForm_arrange1(showForm_makeComponents(internalFrame, _parts));
  ret vstackWithSpacing(out, showForm_defaultGap);
}

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: 51 / 62
Referenced in: [show references]