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

10
LINES

< > BotCompany Repo | #1020974 // showProgressWindow

JavaX fragment (include)

static JProgressBar showProgressWindow(double maxValue) {
  ret showProgressWindow(null, maxValue);
}

static JProgressBar showProgressWindow(S text, double maxValue) {
  JProgressBar bar = jProgressBarWithText(iround(maxValue));
  swingCall(bar, 'setString, text);
  centerFrame(packFrameVertically(500, showFrame(text, bar)));
  ret bar;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020974
Snippet name: showProgressWindow
Eternal ID of this version: #1020974/5
Text MD5: 7aa010c114d918f628704a3fd1d6e20f
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-21 14:44:52
Source code size: 350 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 360
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)