MCPcopy Create free account
hub / github.com/BaseXdb/basex / init

Method init

basex-core/src/main/java/org/basex/BaseXGUI.java:112–122  ·  view source on GitHub ↗

Initializes the GUI. @param opts gui options

(final GUIOptions opts)

Source from the content-addressed store, hash-verified

110 * @param opts gui options
111 */
112 private static void init(final GUIOptions opts) {
113 try {
114 // refresh views when windows are resized
115 Toolkit.getDefaultToolkit().setDynamicLayout(true);
116 // set look and feel
117 final String laf = opts.get(GUIOptions.LOOKANDFEEL);
118 UIManager.setLookAndFeel(laf.isEmpty() ? UIManager.getSystemLookAndFeelClassName() : laf);
119 } catch(final Exception ex) {
120 Util.stack(ex);
121 }
122 }
123
124 @Override
125 protected void parseArgs() throws BaseXException {

Callers 1

BaseXGUIMethod · 0.95

Calls 3

stackMethod · 0.95
getMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected