JPanel p = ... // Sets the JPanel's cursor to the system default. p.setCursor(Cursor.getDefaultCursor());
public void setIsAlwayShown(boolean isAlwaysShown){ showContent(isAlwaysShown); this.isAlwaysShown = isAlwaysShown; titlePanel.setCursor(null); }
public void setIsAlwayShown(boolean isAlwaysShown){ showContent(isAlwaysShown); this.isAlwaysShown = isAlwaysShown; titlePanel.setCursor(null); }
@Override public void mouseEntered(MouseEvent e) { avatarAndRight.setBackground(hoverColor); avatarAndRight.setCursor(new Cursor(Cursor.HAND_CURSOR)); }
@Override public void mouseExited(MouseEvent e) { avatarAndRight.setBackground(backgroundColor); avatarAndRight.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); }
@Override public void mouseEntered(MouseEvent e) { container.setBackground(hoverColor); textContainer.setBackground(hoverColor); container.setCursor(new Cursor(Cursor.HAND_CURSOR)); }
@Override public void mouseExited(MouseEvent e) { container.setBackground(ColorScheme.DARKER_GRAY_COLOR); textContainer.setBackground(ColorScheme.DARKER_GRAY_COLOR); container.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } });
@Override public void mouseMoved(MouseEvent e) { Cursor cursor = (e.getPoint().getY() <= DRAG_OFFSET) ? Cursor.getPredefinedCursor(Cursor.N_RESIZE_CURSOR) : Cursor.getDefaultCursor(); panel.setCursor(cursor); }
add(titlePanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0)); titlePanel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
add(titlePanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0)); titlePanel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
add(titlePanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0)); titlePanel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
add(titlePanel, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(3, 0, 3, 0), 0, 0)); titlePanel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
activeButton.setVisible(!alwaysActive); if (alwaysActive) contentPanel.setVisible(true); if (alwaysActive) titlePanel.setCursor(null);
activeButton.setVisible(!alwaysActive); if (alwaysActive) contentPanel.setVisible(true); if (alwaysActive) titlePanel.setCursor(null);
@ScriptFunction @Override public void setCursor(Cursor aCursor) { super.setCursor(aCursor); }
@Override public void mouseExited(MouseEvent e) { this.panel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } }
@Override public void mouseExited(MouseEvent e) { root.setBorder(BorderFactory.createLineBorder(AppThemeColor.BORDER_DARK)); root.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } });
public void notifyProgressDone() { progressPanel.setVisible(false); //toggleUpdateButton(LabelBarProgressMonitor.updateCommand); updateButton.setEnabled(true); mainPanel.setCursor(Cursor.getDefaultCursor()); }
public void mouseExited(MouseEvent arg0) { Object source = arg0.getSource(); if (source == imageRegion1) { imageRegion2.setDot(false); imageRegion2.setText("", 6); imageRegion2.repaint(); labelInfo.setText(""); } super.setCursor(defaultCursor); }
@Override public void mouseExited(MouseEvent e) { panel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); if (!AbstractMovableComponentFrame.this.getBounds().contains(e.getPoint())) { getRootPane().setBorder(BorderFactory.createLineBorder(AppThemeColor.BORDER, 1)); } } });