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

18
LINES

< > BotCompany Repo | #1004442 - showFormTitled (+ showForm_makePanel) - show input form [Swing]

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);
    frame.set(showForm_makeFrame(title, 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 #1004432

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1004442
Snippet name: showFormTitled (+ showForm_makePanel) - show input form [Swing]
Eternal ID of this version: #1004442/23
Text MD5: c2a4fd9b630d662882eae9cf7c6c43db
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-16 16:02:43
Source code size: 675 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 422
Version history: 22 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1004442 & http://1004442.tinybrain.de