Posts by David Cabral • 186 points
7 posts
-
0
votes1
answer148
viewsA: Problem switching between charts using Cardlayout
you can put a repaint jb1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { repaint(); cards = (CardLayout) mainCard.getLayout(); cards.show(mainCard,…
-
1
votes1
answer223
viewsA: how to center tabs of a Tabbedpane?
got it this way: 1º - Create this class import javax.swing.plaf.basic.BasicTabbedPaneUI; import java.awt.*; public class CenterTabbedPane extends BasicTabbedPaneUI { @Override protected…
-
2
votes1
answer1300
viewsA: Custom Json Spring Receipt
You can customize the Serializer . The code below uses the api Jackson Json: import java.io.IOException; import com.fasterxml.jackson.core.JsonGenerator; import…
-
1
votes1
answer914
viewsA: Problem calling class inside Switch
The problem is why you’re not stopping the while if(usuario.equals("admin")&& (senha.equals("12345"))){ System.out.println("Acesso confirmado!"); Inicio(); break;//impede que o while seja…
-
2
votes1
answer804
viewsA: Delete files created before 10 days ago from current date
I don’t know if it’s the best way, but I use the method below: public static void deletarArquivos(int qtdDias, String path) { Date data = new Date(); Calendar c = Calendar.getInstance();//obtendo a…
-
1
votes1
answer152
viewsA: Calling a method via datatable lines
For various styles you could create a method in the bean that returns the styleClass according to the value passed: .base{ background-image: none !important; font-weight: bold; width: 100%!imporant;…
-
1
votes1
answer83
viewsA: Format word if it is in a datatable
I think you can create a style this way: .atack { background-image: none !important; color: blue !important; font-weight: bold; width: 100%!imporant; height: 100%!imporant; } And in the outputText…