Java Code Examples for org.jdesktop.swingx.SwingXUtilities

The following examples show how to use org.jdesktop.swingx.SwingXUtilities. These examples are extracted from open source projects. 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 Project: darklaf   Source File:    License: MIT License 5 votes vote down vote up
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(),
Example 2
Source Project: FlatLaf   Source File:    License: Apache License 2.0 5 votes vote down vote up
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" ) ) );