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

17
LINES

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

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

Libraryless. Click here for Pure Java version (15385L/90K).

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(-> {
    JPanel panel = showForm_makePanel(false, _parts);
    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  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004442
Snippet name: showFormTitled (+ showForm_makePanel) - show input form [Swing]
Eternal ID of this version: #1004442/27
Text MD5: 8a6cd200220276f1531f5c8e0c1f5eb1
Transpilation MD5: ccece4396919f3b2528e562aaabe6ca0
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-25 00:28:42
Source code size: 618 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 806 / 891
Version history: 26 change(s)
Referenced in: [show references]