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

30
LINES

< > BotCompany Repo | #1003375 // showCenterFrame

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

Transpiled version (7614L) is out of date.

static JFrame showCenterFrame(S title, int w, int h) {
  ret showCenterFrame(title, w, h, null);
}

static JFrame showCenterFrame(Pt size, S title default defaultFrameTitle(), Component content) {
  ret showCenterFrame(title, size.x, size.y, content);
}

static JFrame showCenterFrame(int w, int h, Component content) {
  ret showCenterFrame(defaultFrameTitle(), w, h, content);
}

static JFrame showCenterFrame(S title, int w, int h, Component content) {
  JFrame frame = makeFrame(title, content);
  setSize(frame, w, h);
  ret centerFrame(frame);
}

static JFrame showCenterFrame(int w, int h, S title, Component content) {
  ret showCenterFrame(title, w, h, content);
}

static JFrame showCenterFrame(S title, Component content) {
  ret centerFrame(makeFrame(title, content));
}


static JFrame showCenterFrame(Component content) {
  ret centerFrame(makeFrame(content));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003375
Snippet name: showCenterFrame
Eternal ID of this version: #1003375/9
Text MD5: 551d53f751aabe715625a39a82a1a653
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-25 20:09:08
Source code size: 905 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 625 / 661
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014103 - showCenteredFrame - synonym of showCenterFrame