Java 8 UnsupportedLookAndFeelException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 UnsupportedLookAndFeelException class.

This code example shows how to use the following methods:printStackTrace
        } catch (final InstantiationException e) {
            e.printStackTrace();
        } catch (final IllegalAccessException e) {
            e.printStackTrace();
        } catch (final UnsupportedLookAndFeelException e) {
            e.printStackTrace();
        } 
        SwingUtilities.updateComponentTreeUI(this);
    } 
 
    /** 
     * Initializes the LOG. 
     */ 
    private static void initializeLogger() { 
        // Log Levels: DEBUG < INFO < WARN < ERROR; 
        final URL log4jConfig = Applet.class.getResource("/config/log4japplet.properties");
        PropertyConfigurator.configure(log4jConfig);
    } 
 
    @Override 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
	} 
 
 
 
 
	private void registerForRFIDEvents(String deviceId){
		String eventFilter = "(&" + 
				"(" + CSSEventConstants.EVENT_NAME + "=" + DeviceMgmtEventConstants.RFID_READER_EVENT + ")" + 
				"(" + CSSEventConstants.EVENT_SOURCE + "=" + deviceId + ")" +
				")"; 
		if(logging.isDebugEnabled()) logging.debug("Registering for RFIDEvent: "+eventFilter);
 
		this.eventMgr.subscribeInternalEvent(this, new String[]{EventTypes.RFID_UPDATE_EVENT}, eventFilter);
4
CodeRank
This code example shows how to use the following methods:printStackTrace
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		} 
		 
		PeerAsyncUIModel model = new PeerAsyncUIModel();
		model.loadProperties();
		PeerAsyncInitializer.getInstance().setModel(model);
		 
		BufferedImage iconImage = ImageIO.read(Main.class.
				getResourceAsStream("/resources/images/icon.png"));
		try { 
			final PeerGUIMainFrame frame = new PeerGUIMainFrame(iconImage, model);
			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			frame.setVisible(true);
			model.addListener(frame);
					 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		} 
	} 
      
	/** 
	 * Initializes the AROUIManager with the styles that form the default the look and feel of the ARO Data Analyzer. 
	 */ 
	public static void init() { 
		put(TITLE_FONT_KEY, new Font(TITLE_FONT_KEY, Font.BOLD, 18));
		put(PAGE_BACKGROUND_KEY, Color.WHITE);
		put(LABEL_FONT_KEY, LABEL_FONT);
 
		/* Tool tip visibility delay configured. */ 
		ToolTipManager ttm = ToolTipManager.sharedInstance();
		ttm.setDismissDelay(8000);
4
CodeRank
This code example shows how to use the following methods:printStackTrace
This code example shows how to use the following methods:printStackTrace
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} 
		System.out.println("windows laf" + isWindowsLAF());
		System.out.println("LAF : " + UIManager.getLookAndFeel().getClass().getName());
		outputSwingDefs(); 
	} 
	public static void outputSwingDefs() { 
		String lineSep = System.getProperty("line.separator");
		javax.swing.UIDefaults uid = javax.swing.UIManager.getDefaults();
		java.util.Enumeration uidKeys = uid.keys();
 
		while (uidKeys.hasMoreElements()) {
			Object aKey = uidKeys.nextElement();
			Object aValue = uid.get(aKey);
			String str = "KEY: " + aKey + ", VALUE: " + aValue + lineSep;
3
CodeRank
This code example shows how to use the following methods:printStackTrace
			} catch (InstantiationException e) {
				e.printStackTrace();
			} catch (IllegalAccessException e) {
				e.printStackTrace();
			} catch (UnsupportedLookAndFeelException e) {
				e.printStackTrace();
			} 
 
			BufferedImage iconImage = ImageIO.read(Main.class.
					getResourceAsStream("/resources/images/icon.png"));
			BrokerAsyncUIModel model = new BrokerAsyncUIModel();
			model.loadProperties();
			BrokerAsyncInitializer.getInstance().setModel(model);
			 
			BrokerGUIMainFrame frame = new BrokerGUIMainFrame(iconImage, model);
			frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
			frame.setVisible(true);
			model.addListener(frame);
			 
			frame.setStartEnabled(false);
4
CodeRank
This code example shows how to use the following methods:printStackTrace
		//substance look and feel  
		try { 
				UIManager.setLookAndFeel(laf);
			} 
			catch (UnsupportedLookAndFeelException e) {
				e.printStackTrace();
			} 
		browser.addContentListener(this);
	 } 
	 
	/** 
	 * Implementation of "Back"-button 
	 */ 
	public void goBack() { 
		browser.back();
	} 
 
	/** 
	 * Initialization of the BrowserViewer 
	 */ 
3
CodeRank
This code example shows how to use the following methods:printStackTrace
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			e.printStackTrace();
		} 
 
		BufferedImage iconImage = ImageIO.read(Main.class.
				getResourceAsStream("/resources/images/icon.png"));
		WorkerAsyncUIModel model = new WorkerAsyncUIModel();
		model.loadProperties();
		WorkerAsyncInitializer.getInstance().setModel(model);
		 
		WorkerGUIMainFrame frame = new WorkerGUIMainFrame(iconImage, model);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		model.addListener(frame);
		 
		try { 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
See Code Examples for Java 8 UnsupportedLookAndFeelException Methods: