org.jdesktop.swingx.SwingXUtilities Java Examples
The following examples show how to use
org.jdesktop.swingx.SwingXUtilities.
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: DragRecognitionSupport.java From darklaf with MIT License | 5 votes |
private int mapDragOperationFromModifiers(final MouseEvent me, final TransferHandler th) { if (th == null || !SwingUtilities.isLeftMouseButton(me)) { return TransferHandler.NONE; } // PENDING JW: c'p from SunDragSourceContextPeer return SwingXUtilities.convertModifiersToDropAction(me.getModifiersEx(), th.getSourceActions(component)); }
Example #2
Source File: FlatTitledPanelUI.java From FlatLaf with Apache License 2.0 | 5 votes |
@Override protected void installComponents( JXTitledPanel titledPanel ) { super.installComponents( titledPanel ); if (SwingXUtilities.isUIInstallable(titledPanel.getBorder())) titledPanel.setBorder( new FlatLineBorder( new Insets( 1, 1, 1, 1 ), UIManager.getColor( "JXTitledPanel.borderColor" ) ) ); }