com.sun.swingset3.demos.DemoUtilities Java Examples
The following examples show how to use
com.sun.swingset3.demos.DemoUtilities.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HTMLPanel.java From littleluck with Apache License 2.0 | 6 votes |
public void hyperlinkUpdate(HyperlinkEvent event) { JEditorPane descriptionPane = (JEditorPane) event.getSource(); HyperlinkEvent.EventType type = event.getEventType(); if (type == HyperlinkEvent.EventType.ACTIVATED) { try { DemoUtilities.browse(event.getURL().toURI()); } catch (Exception e) { e.printStackTrace(); System.err.println(e); } } else if (type == HyperlinkEvent.EventType.ENTERED) { defaultCursor = descriptionPane.getCursor(); descriptionPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else if (type == HyperlinkEvent.EventType.EXITED) { descriptionPane.setCursor(defaultCursor); } }
Example #2
Source File: HTMLPanel.java From beautyeye with Apache License 2.0 | 6 votes |
public void hyperlinkUpdate(HyperlinkEvent event) { JEditorPane descriptionPane = (JEditorPane) event.getSource(); HyperlinkEvent.EventType type = event.getEventType(); if (type == HyperlinkEvent.EventType.ACTIVATED) { try { DemoUtilities.browse(event.getURL().toURI()); } catch (Exception e) { e.printStackTrace(); System.err.println(e); } } else if (type == HyperlinkEvent.EventType.ENTERED) { defaultCursor = descriptionPane.getCursor(); descriptionPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else if (type == HyperlinkEvent.EventType.EXITED) { descriptionPane.setCursor(defaultCursor); } }
Example #3
Source File: HTMLPanel.java From Darcula with Apache License 2.0 | 6 votes |
public void hyperlinkUpdate(HyperlinkEvent event) { JEditorPane descriptionPane = (JEditorPane) event.getSource(); HyperlinkEvent.EventType type = event.getEventType(); if (type == HyperlinkEvent.EventType.ACTIVATED) { try { DemoUtilities.browse(event.getURL().toURI()); } catch (Exception e) { e.printStackTrace(); System.err.println(e); } } else if (type == HyperlinkEvent.EventType.ENTERED) { defaultCursor = descriptionPane.getCursor(); descriptionPane.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); } else if (type == HyperlinkEvent.EventType.EXITED) { descriptionPane.setCursor(defaultCursor); } }
Example #4
Source File: DialogDemo.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(dialog, dialogSpaceholder, SwingConstants.CENTER); showDialog(); }
Example #5
Source File: WindowDemo.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(window, windowSpaceholder, SwingConstants.CENTER); showWindow(); }
Example #6
Source File: DialogDemo.java From littleluck with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(dialog, dialogSpaceholder, SwingConstants.CENTER); showDialog(); }
Example #7
Source File: WindowDemo.java From littleluck with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(window, windowSpaceholder, SwingConstants.CENTER); showWindow(); }
Example #8
Source File: FrameDemo.java From littleluck with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(frame, frameSpaceholder, SwingConstants.CENTER); showFrame(); }
Example #9
Source File: DialogDemo.java From beautyeye with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(dialog, dialogSpaceholder, SwingConstants.CENTER); showDialog(); }
Example #10
Source File: WindowDemo.java From beautyeye with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(window, windowSpaceholder, SwingConstants.CENTER); showWindow(); }
Example #11
Source File: FrameDemo.java From beautyeye with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(frame, frameSpaceholder, SwingConstants.CENTER); showFrame(); }
Example #12
Source File: DialogDemo.java From Darcula with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(dialog, dialogSpaceholder, SwingConstants.CENTER); showDialog(); }
Example #13
Source File: WindowDemo.java From Darcula with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(window, windowSpaceholder, SwingConstants.CENTER); showWindow(); }
Example #14
Source File: FrameDemo.java From Darcula with Apache License 2.0 | 4 votes |
public void start() { DemoUtilities.setToplevelLocation(frame, frameSpaceholder, SwingConstants.CENTER); showFrame(); }