Posts by Valdecir • 285 points
17 posts
-
6
votes1
answer962
viewsQ: Remote access to Mysql database
I have a BD within a corporate network on a local machine serving as a Mysql server. The structure of the network works like this! I need to access for example the machine that is marked red, and in…
-
0
votes0
answers141
viewsQ: How to mount a server for client authentication
I have a java application, and would like to have an online server for offline client authentication. Example: Client x would need to connect at least once on the server, to authenticate before the…
-
0
votes0
answers310
viewsQ: Identify empty columns of a jTable and paint the entire row red
I am importing a file in Excel and playing inside a jTable, so far so good. What happens is that there is user inserting spreadsheet with empty fields. I would like to leave the whole Lina in red…
-
0
votes1
answer731
viewsQ: Leave only one editable Jtable column
I have my data model that I made for tests as shown in the code below: public class ModeloDados { private String nome; private String sobreNome; private String telefone; public ModeloDados(String…
-
3
votes1
answer3486
viewsQ: Use the same jFormattedTextField for CPF and CNPJ mask
I wonder if it’s possible in one JFormattedTextField, toggle mask for CPF and CNPJ. When I wear the mask of JFormattedTextField the value is already static, and if put to the CPF, It will not fit…
-
5
votes1
answer2234
viewsQ: To limit and display the number of characters in a Jtextarea
I have a supplier registration window, and I’d like to insert a jTextArea so that the user has the option to enter some observation about the supplier. The idea is that, limit the amount of…
-
3
votes1
answer1765
viewsQ: How to change the text color of a column of a Jtable
I have a form for payment of installments, and this form has a table where I show both the installments paid and those that should still be paid. To popular this JTable, I make a query in the…
-
3
votes2
answers2280
viewsQ: Change Varchar field to Date Mysql
I need to fix a table that was built wrong, the field that would store the date was created as varchar. With this structure I can not select a certain period, because varchar are ordered from left…
-
0
votes1
answer228
viewsQ: How to use Jprogressbar in Arraylist comparison classes?
I have a class that compares two ArrayList, one with information added by the user and the other with database query. After the query is done, I send this object to another class that performs the…
-
0
votes0
answers57
viewsQ: How to use Jprogressbar with audio readings in excel
I have a method that receives an Excel file, and a Jtable. This method reads the file and plays the data contained in it within jTable. import java.io.File; import java.io.FileInputStream; import…
-
2
votes3
answers394
viewsQ: Data Range Search in SQL
I have a table with the structure below I need to make an appointment with a certain interval in order to generate a report. I used the Between command... and with it it returns me the following…
-
0
votes2
answers1618
viewsA: Passing parameter using the " String[] args" declared in main
Good people found the answer to that question... Actually this String vector declared in main when passed as parameter, the "value" has to be predetermined before the execution of the program, as if…
-
2
votes2
answers1618
viewsQ: Passing parameter using the " String[] args" declared in main
I’ve been searching the Oracle documentation, examples of copies of files, with their attributes in various ways... Within this research I came across a strange thing that was the parameter passage…
-
1
votes1
answer770
viewsA: How to change the appearance and behavior of the "Open" and "Cancel" Jfilechooser buttons?
Good people I managed to get where I wanted, or better already gave to begin... The code was as shown below, what I am doing is captaining all kinds of selection and what I did with the button open…
-
3
votes1
answer770
viewsQ: How to change the appearance and behavior of the "Open" and "Cancel" Jfilechooser buttons?
Good people, I’m trying to use Jfilechooser to select directories and also files. What I’m using so far is public void buscaFile() { File[] diretorio = null; diretorio = selectDir(); if(diretorio !=…
-
0
votes1
answer421
viewsQ: Failure to copy an entire directory and its files
I need to copy an entire directory that contains files inside using Java NIO2 with FileChannels. But I can only copy the files inside the directory. Follow the code I’m using to copy the files:…
-
1
votes2
answers1021
viewsQ: Display all directories and files contained in them
I’m trying to mount a file tree where in addition to displaying the computer directories is displayed also your files. The code I made below is listing only the specified directory, in case the C:\.…