MCPcopy Create free account
hub / github.com/PCGen/pcgen / PCGenStatusBar

Method PCGenStatusBar

code/src/java/pcgen/gui2/PCGenStatusBar.java:63–82  ·  view source on GitHub ↗
(PCGenFrame frame)

Source from the content-addressed store, hash-verified

61 private final Button loadStatusButton;
62
63 PCGenStatusBar(PCGenFrame frame)
64 {
65 this.frame = frame;
66 this.messageLabel = new JLabel();
67 this.progressBar = new JProgressBar();
68 this.loadStatusButton = new Button();
69
70 setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
71 add(messageLabel);
72 add(Box.createHorizontalGlue());
73 progressBar.setStringPainted(true);
74 progressBar.setVisible(false);
75 add(progressBar);
76 add(Box.createHorizontalGlue());
77 JFXPanel wrappedButton = GuiUtility.wrapParentAsJFXPanel(loadStatusButton);
78 //todo: calculate this rather than hard code
79 wrappedButton.setMaximumSize(new Dimension(750, 20000000));
80 add(wrappedButton);
81 loadStatusButton.setOnAction(PCGenStatusBar::loadStatusLabelAction);
82 }
83
84 public void setContextMessage(String message)
85 {

Callers

nothing calls this directly

Calls 3

wrapParentAsJFXPanelMethod · 0.95
addMethod · 0.65
setVisibleMethod · 0.65

Tested by

no test coverage detected