List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI.java
/** * Runs this application. Help message prints if no arguments are given or if the "help" argument is given. * /*from w w w . j ava 2 s. c om*/ * @param args command line arguments * * @throws Exception thrown if there is a problem during program execution */ public static void main(String[] args) throws Exception { CmdLineParser parser = parseCommandArguments(args); ApplicationContext appCtx = loadConfigurations( (String) parser.getOptionValue(CLIParserBuilder.CONFIG_DIR_ARG), (String) parser.getOptionValue(CLIParserBuilder.SPRING_EXTS_ARG)); saml1AA = (SAML1AttributeAuthority) appCtx.getBean("shibboleth.SAML1AttributeAuthority"); saml2AA = (SAML2AttributeAuthority) appCtx.getBean("shibboleth.SAML2AttributeAuthority"); SAMLObject attributeStatement; Boolean saml1 = (Boolean) parser.getOptionValue(CLIParserBuilder.SAML1_ARG, Boolean.FALSE); if (saml1.booleanValue()) { protocol = SAMLConstants.SAML11P_NS; attributeStatement = performSAML1AttributeResolution(parser, appCtx); } else { protocol = SAMLConstants.SAML20P_NS; attributeStatement = performSAML2AttributeResolution(parser, appCtx); } printAttributeStatement(attributeStatement); }
From source file:ChooseDropActionDemo.java
public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { // Turn off metal's use of bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); createAndShowGUI();// w ww . jav a 2 s. c om } }); }
From source file:DropDemo.java
public static void main(String[] args) { //Schedule a job for the event-dispatching thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { //Turn off metal's use of bold fonts UIManager.put("swing.boldMetal", Boolean.FALSE); createAndShowGUI();// w ww . java 2s . c o m } }); }
From source file:layout.FlowLayoutDemo.java
public static void main(String[] args) { /* Use an appropriate Look and Feel */ try {//ww w.ja va2 s. c om //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); //Schedule a job for the event dispatchi thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }
From source file:WordCountSplitTest.java
public static void main(String[] args) throws Exception { boolean[] tf = { false, true }; Boolean[] ntf = { null, Boolean.TRUE, Boolean.FALSE }; for (boolean use_shards : tf) for (boolean use_chunks : tf) for (Boolean slaveok : ntf) test(use_shards, use_chunks, slaveok); }
From source file:com.jsystem.j2autoit.AutoItAgent.java
/** * Launch the server side// www. j a va 2 s. c o m * * @param args */ public static void main(String[] args) { try { Log.initLog(); isDebug = AutoItProperties.DEBUG_MODE_KEY.getValue(isDebug); isAutoDeleteFiles = AutoItProperties.AUTO_DELETE_TEMPORARY_SCRIPT_FILE_KEY.getValue(isAutoDeleteFiles); if (isAutoDeleteFiles) { Integer tempHistory = AutoItProperties.AUTO_IT_SCRIPT_HISTORY_SIZE_KEY .getValue(DEFAULT_HistorySize); HistoryFile.init(); HistoryFile.setHistory_Size(tempHistory); } isForceAutoItShutDown = AutoItProperties.FORCE_AUTO_IT_PROCESS_SHUTDOWN_KEY .getValue(isForceAutoItShutDown); webServicePort = AutoItProperties.AGENT_PORT_KEY.getValue(webServicePort); serverState = AutoItProperties.SERVER_UP_ON_INIT_KEY.getValue(serverState); Log.setLogMode(false, isDebug); Runtime.getRuntime().addShutdownHook(new ExitThread()); Log.info(System.getProperty("user.dir") + NEW_LINE); Log.info("AutoIt Location: " + getAutoExecuterItLocation("Unable to find") + NEW_LINE); startAutoItWebServer(webServicePort); if (serverState) { serverState = false; runWebServer(); } UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (Exception exception) { Log.throwable(exception.getMessage() + NEW_LINE, exception); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); //Schedule a job for the event-dispatching thread: //adding TrayIcon. SwingUtilities.invokeLater(new Runnable() { @Override public void run() { createAndShowGUI(); } }); }
From source file:misc.FocusTraversalDemo.java
public static void main(String[] args) { /* Use an appropriate Look and Feel */ try {/*from w w w . j a v a 2 s. c o m*/ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); //UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); //Schedule a job for the event-dispatching thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }
From source file:FocusTraversalDemo.java
public static void main(String[] args) { /* Use an appropriate Look and Feel */ try {/* w w w . j a v a 2s .c o m*/ // UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); // UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); // Schedule a job for the event-dispatching thread: // creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }
From source file:events.FocusEventDemo.java
public static void main(String[] args) { /* Use an appropriate Look and Feel */ try {/* w w w .j a v a 2 s .co m*/ //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); //Schedule a job for the event dispatch thread: //creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }
From source file:FocusEventDemo.java
public static void main(String[] args) { /* Use an appropriate Look and Feel */ try {//from w w w. j a v a 2 s . c o m // UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); } catch (UnsupportedLookAndFeelException ex) { ex.printStackTrace(); } catch (IllegalAccessException ex) { ex.printStackTrace(); } catch (InstantiationException ex) { ex.printStackTrace(); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } /* Turn off metal's use of bold fonts */ UIManager.put("swing.boldMetal", Boolean.FALSE); // Schedule a job for the event dispatch thread: // creating and showing this application's GUI. javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }