Skip to content
View rodrigocananea's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report rodrigocananea

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Criar fundo escuro opaco ao abrir ja... Criar fundo escuro opaco ao abrir janelas dialog usando FlatLaf
    1
    package info.evoluti.erp.components.util;
    2
    
                  
    3
    import com.formdev.flatlaf.util.Animator;
    4
    import lombok.AccessLevel;
    5
    import lombok.NoArgsConstructor;
  2. Reconhecer conteúdo de imagem e forç... Reconhecer conteúdo de imagem e forçar uma margem de 30px ao redor, recortando o conteúdo excedente da margem
    1
    
                  
    2
    /**
    3
     *
    4
     * @author Rodrigo Cananea <rodrigoaguiar35@gmail.com>
    5
     */
  3. Java 8 Limit files by last modified ... Java 8 Limit files by last modified (.sql / .zip)
    1
    
                  
    2
    // Days of limit
    3
    final int limitDays = 5; 
    4
    
                  
    5
    List<File> files = Files.list(Paths.get("D:\Backup"))
  4. Java 8 Elapsed time with Guava Java 8 Elapsed time with Guava
    1
    
                  
    2
    import com.google.common.base.Stopwatch;
    3
    import java.awt.event.ActionEvent;
    4
    import java.awt.event.ActionListener;
    5
    import java.time.Duration;
  5. Abrir gaveta de dinheiro usando Epso... Abrir gaveta de dinheiro usando Epson ou Bematech por comando de impressão - Java
    1
    public static void abrirGaveta() {
    2
        javax.print.DocPrintJob dpj = PrinterService.getImpressoraPadrao().createPrintJob();
    3
        javax.print.DocFlavor flavor = javax.print.DocFlavor.BYTE_ARRAY.AUTOSENSE;
    4
        //byte[] bematech = new byte[]{(byte) 29, (byte) 249, (byte) 32, (byte) 0, (byte) 27, (byte) 118, (byte) 140};
    5
        byte[] epson = new byte[]{(byte) 27, (byte) 112, (byte) 0, (byte) 10, (byte) 100};
  6. JLabel responsiva, redimensionar con... JLabel responsiva, redimensionar conforme na largura/altura disponivel
    1
    
                  
    2
    import java.awt.EventQueue;
    3
    import java.awt.Font;
    4
    import java.awt.Graphics;
    5
    import java.awt.event.ComponentAdapter;