Java 8 Cursor - 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 Cursor class.

This code example shows how to use the following methods:
    	actionsPanel.peerStarted();
    	xmppConfigurationPanel.disableFieldEdition();
    	xmppConfigurationPanel.disableEditConf();
    	peerConfigurationPanel.disableFieldEdition();
    	 
    	getContentPane().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    } 
     
    public void peerRestarted() { 
    	actionsPanel.peerStarted();
    	xmppConfigurationPanel.disableFieldEdition();
    	xmppConfigurationPanel.setXMPPUpInfo();
    	xmppConfigurationPanel.disableEditConf();
    	peerConfigurationPanel.disableFieldEdition();
    	 
    	getContentPane().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    } 
 
    /** 
     * Define the status of this Frame when the peer 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
    	xmppConfigurationPanel.disableFieldEdition();
    	xmppConfigurationPanel.disableEditConf();
    	 
    	actionsPanel.workerStarted();
    	 
    	getContentPane().setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
	} 
 
    /** 
     * Define the status of this Frame when the worker 
     * is sttoped. 
     */ 
	public void workerStopped() { 
		workerConfigurationPanel.enableInput();
		 
    	xmppConfigurationPanel.disableFieldEdition();
    	xmppConfigurationPanel.setXMPPUpInfo();
    	xmppConfigurationPanel.enableEditConf();
    	 
    	actionsPanel.workerStopped();
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        } 
        else{ 
        	requiredCursor = Cursor.DEFAULT_CURSOR;
        } 
        if (node.getCursor().getType() != requiredCursor) {
        	node.setCursor(requiredCursor != Cursor.DEFAULT_CURSOR ? new Cursor(requiredCursor) : null);
        } 
    } 
 
	public void mouseClicked(final MouseEvent e) {
    	final ZoomableLabel component = (ZoomableLabel) e.getComponent();
    	if(e.getClickCount() == 1 && e.getButton() == 1)
    		if(Compat.isPlainEvent(e)){
    			final String link = component.getLink(e.getPoint());
    			if(link != null){
    				if (link != null) {
    					try { 
    						UrlManager.getController().loadURL(new URI(link));
    					} catch (Exception ex) {
    						LogUtils.warn(ex);
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		theApp.repaint();
		theApp.updateChange();
		selectedNote = -1;
		topTimeSelected = false;
		keySelected = false;
		theApp.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
	} 
	 
	public void actionPerformed(ActionEvent e) { // 1.1 Event Model. Trap button clicks.
	} 
	 
	// key listener stubs 
	/* 
	public void keyPressed(KeyEvent e) {} 
	 
	public void keyReleased(KeyEvent e) {} 
	 
	public void keyTyped(KeyEvent e) { 
		if(e.getKeyChar() == '\b') theApp.deleteLastNote(); 
	} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		theApp.repaint();
		theApp.updateChange();
		selectedNote = -1;
		topTimeSelected = false;
		keySelected = false;
		theApp.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
	} 
	 
	public void actionPerformed(ActionEvent e) { 
        Phrase phrase   = theApp.getPhrase();         
        Note note       = phrase.getNote(selectedNote);
        if (e.getSource() == editNote) {
            Frame      editorFrame 
                = new Frame( "Edit this Note");
            editorFrame.setSize( 400, 400);                  
            editorFrame.setResizable(true);
            NoteEditor noteEditor
                 = new NoteEditor(editorFrame);            
            noteEditor.editNote(note, 20, 20);
        }	        
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		ClientGui.frame.setCursor(hourglassCursor);	
	 
	} 
	 
	public static void showDefaultCursor(){ 
		Cursor hourglassCursor = new Cursor(Cursor.DEFAULT_CURSOR);
		ClientGui.frame.setCursor(hourglassCursor);		
	} 
	 
	public static byte[] toByteArray (Object obj) 
	{ 
	  byte[] bytes = null;
	  ByteArrayOutputStream bos = new ByteArrayOutputStream();
	  try { 
	    ObjectOutputStream oos = new ObjectOutputStream(bos); 
	    oos.writeObject(obj);
	    oos.flush(); 
	    oos.close(); 
	    bos.close();
	    bytes = bos.toByteArray ();
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        final protected Font hover;
        final protected Font normal;
 
        public PresetLabelMouseListener(JLabel lbl) {
            label = lbl;
            lbl.setCursor(new Cursor(Cursor.HAND_CURSOR));
            normal = label.getFont();
            hover = normal.deriveFont(Collections.singletonMap(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_LOW_DOTTED));
        } 
        @Override 
        public void mouseClicked(MouseEvent arg0) {
        } 
 
        @Override 
        public void mouseEntered(MouseEvent arg0) {
            label.setFont(hover);
        } 
        @Override 
        public void mouseExited(MouseEvent arg0) {
            label.setFont(normal);
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
            super(); 
            this.setOpaque(false);
            this.setBorder(null);
            this.setFont(new Font("Ariel", Font.BOLD, buttonHeight - 3));
            this.setPreferredSize(new Dimension(0, buttonHeight));
            this.setCursor(new Cursor(Cursor.HAND_CURSOR));
            this.addActionListener(this);
        } 
 
        /** 
         * Notifies parent explorer that this drawer was selected 
         */ 
        public void actionPerformed(ActionEvent e) {
            StackCard.this.notifySelection();
        } 
 
        /** 
         * Paints this label with a shadow-outlined text and background 
         * matching that of the canvas's color, or grey by default. 
         */ 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        this.selectedColor = selectedColor;
        this.setText(text);
        this.setFont(new Font("Ariel", Font.BOLD, 16));
        this.addMouseListener(this);
        this.setPreferredSize(new Dimension(80, 25));
        this.setCursor(new Cursor(Cursor.HAND_CURSOR));
 
    } 
 
    /** 
     * Dynamically changes the coloring of the buttons when 
     * pressed or not pressed. 
     * 
     * @param buttonColor 
     * @param selectedColor 
     * 
     * @requires buttonColor, selectedColor != null 
     * @modifies this.buttonColor && this.seletedColor 
     * @effects change button coloring to match to inputs 
     */ 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
        this.thumbStart = value;
        this.setTicks = setTicks;
        this.tickNumber = numTicks;
        this.setSize(100, 25);
        this.setOpaque(false);
        this.setCursor(new Cursor(Cursor.HAND_CURSOR));
        this.leadingColor = leadingTrackColor;
        this.trailingColor = trailingTrackColor;
        this.thumbColor = thumbColor;
        this.left = left;
        this.value = value;
        this.right = right;
        this.trackThickness = thickness;
        this.blueprint = new SliderBlueprint();
        this.addActionListener(this);
        this.addMouseListener(this);
        this.addMouseMotionListener(this);
    } 
 
    private void addActionListener(CSlider slider) {
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Java 8 Cursor Methods: