Posts by Júnior Nascimento • 679 points
32 posts
-
1
votes1
answer525
viewsQ: Servlet Faces - Error in context with path
Good morning, As I have already said in another topic is not my web area but I am trying to kkkk... After adding a Responsive template named Prologue I have the following error. GRAVE:…
-
0
votes3
answers579
viewsA: JSF + Primefaces - HTTP 404 error
Solution... <dependency> with.sunfaces. jsf-api 2.1.13 with.sunfaces. jsf-impl 2.1.13 wild boar. javax.Servlet-api 3.0.1…
-
0
votes3
answers579
viewsQ: JSF + Primefaces - HTTP 404 error
Good morning, Web isn’t my thing anymore. I created the project as "Dynamic Web" after converting to Maven because it was giving errors and the way it stopped giving error was described above. I did…
-
-1
votes1
answer439
viewsQ: Java - How do I leave the Postgresql Permanent Connection IP?
Good morning, Every time my machine connects to the internet, her IP address changes. My question is... How do I always get access to Postgresql even if the IP of my machine changes? public class…
-
0
votes1
answer44
viewsQ: Java - Sliding Menu
Good morning, How do I make my menu manageable? I’ve been reigning a little bit more than I know how to do in jFrame. Could someone guide me? Thank you very much!…
-
0
votes1
answer221
viewsQ: Java - Main Class Execution Error
Good afternoon, After using Eclipse Luna and returning to Eclipse Mars simply business broke up until I deleted the Eclipse files to see if it solved and import again the java project but keeps…
-
1
votes1
answer136
viewsQ: Convert Java + Windowbuilder project to Android or Web
Good afternoon, Would it be possible to convert my Java + Windowbuilder project to Android devices or to the web? I saw that it is possible to convert Java to Maven plus another doubt is... What…
-
0
votes1
answer733
viewsQ: Check password fields with each other
How do I validate two password fields if both are equal? if(pfSenha.getPassword() == pfCSenha.getPassword()) { JOptionPane.showMessageDialog(null, "Senhas conferem!"); } else {…
javaasked Júnior Nascimento 679 -
1
votes1
answer796
viewsQ: Validate jFormattedTextField with Mascara
I’m using jFormattedTextField with Mascara but I don’t know how to validate if the whole field has been filled. jFormattedTextField // CPF JLabel lblCpf = new JLabel("CPF"); contentPane.add(lblCpf,…
javaasked Júnior Nascimento 679 -
0
votes0
answers149
viewsQ: How to disable component in Jframe
I have two Jframes the first has the name "System" and another "Access" when completing the authentication in "Access" wanted the component called "mnUsuario" which is described below was disabled…
-
1
votes1
answer910
viewsQ: Java - How to Capture Data from Jformattedtextfield and Validate
Good night, I have the following problem. I don’t know how to validate if the Jformatted Textfield field has something written or not, so much so that the formatting ##. ###. ###-## is not…
-
2
votes1
answer146
viewsQ: Return Connection as Boolean?
It would be possible to modify the class so that it returns to jFrame the result of the connection as Boolean? public class ConectarDB { private static Connection con = null; public static…
-
0
votes1
answer31
viewsQ: Instance error for class
Good afternoon, I’ve looked at it many times and I don’t understand why it’s wrong. I need to instantiate the "created variable" that is in Jframe for the User class. But it keeps saying that on the…
-
1
votes1
answer50
viewsQ: Java - Class does not display requested information
Good morning, I need to fix a problem when I ask in "dao. Access" the get of the model class.User returns vázio = null. When it is called: doLogin(model.Access access) you see the information by…
-
3
votes1
answer49
viewsQ: Java - SQL Error Updating All Users
Good morning, I’m having the following problem my updateOur SQL is updating all how I do so that it just updates the User who accessed? public class Acessar { public static Connection con =…
-
2
votes1
answer78
viewsQ: Java - How to validate user group in SQL and Save result?
Good morning, I have the following code in Java Desktop. I wanted to know how I can capture this user’s group and save it into a variable. Since when it returns the value and stores in the variable…
-
1
votes1
answer124
viewsA: Update Table in Postgresql
Inside the Jframe that contains the access I created the following. // Capturar Data e Hora do Acesso java.util.Date date = new java.util.Date(); model.UsuarioA usuarioA = new model.UsuarioA(date);…
-
5
votes1
answer124
viewsQ: Update Table in Postgresql
I have the following question in Java: how can I pass to SQL that it should capture the "date and time" of the computer and update the User Table in Postgresql? Follows code: public class…
-
2
votes2
answers2948
viewsQ: Error: "Cannot make a Static Reference to the non-static method from *"
Good morning, I have a following error warning. on line 23 and 24 of the User.class. Says: Cannot make a Static Reference to the non-static method from User. public class UsuarioDAO { public static…
javaasked Júnior Nascimento 679 -
2
votes1
answer1252
viewsQ: Open Folder to select File
How do I open the file selection box and only choose songs with the extension .mp3? I am using Windowbuilder but the menu does not provide such option for quick creation.
javaasked Júnior Nascimento 679 -
2
votes1
answer40
viewsQ: Java - Disk Reader (Linux)
Good night, I was looking like we can open the disk drive on Windows using Java there are various means like even using vbs. I wonder if I need to use some library on Linux or if I can do it…
-
6
votes2
answers14324
viewsQ: Check whether the string is null or empty
How do I check if my variable is empty or null? // Inserção Nome = tf_Nome.getText().toString(); Tipo = tf_Tipo.getText().toString(); Estoque = Integer.valueOf(tf_Estoque.getText().toString());…
-
1
votes2
answers695
viewsA: Java - Mysql Export and Import DB
Mysql Export // Variáveis String host = "localhost"; String port = "3306"; String dbname = "pizzaria"; String user = "root"; String pass = "123456"; String location = tfDiretorio.getText().trim();…
-
0
votes2
answers695
viewsQ: Java - Mysql Export and Import DB
Good afternoon. I created a DB in Mysql named Pizzeria. I have tried various means of creating DB backup but haven’t had success. The last code I tried was: try { File file = new File("Backup");…
-
3
votes1
answer112
viewsQ: How to search for . exe?
How do I make a Java application that searches for a ". exe" inside a folder and inside that folder has subfolders. I want it to search for me even if I have subfolders. And it returns true or…
javaasked Júnior Nascimento 679 -
0
votes1
answer155
viewsQ: How to compile Java with icons
Formerly, post a question of how to compile my project in "Runnable Jar" with icons. And manage to do this with label and Buttons. Now my doubt is how to do this in iconImage. I tried the following:…
javaasked Júnior Nascimento 679 -
0
votes1
answer216
viewsA: Eclipse Windowbuilder Pro - Export Project
Solved: 1º Create a "Folder" inside the "src" and then just drag the icons/images inside the "Folder" and change the code below: For label, button etc. btSair.setIcon(new…
-
0
votes1
answer216
viewsQ: Eclipse Windowbuilder Pro - Export Project
I’m having trouble exporting my project with icons. 1º Export -> "Runnable jar file" 2º I leave the first option marked. 3º When I run on Linux or on another machine other than mine the icons are…
-
3
votes1
answer426
viewsQ: How to make a Spinner that only accepts numbers in Primefaces?
I am using Primefaces for a college project. How do I make "Spinner" not accept "Characters" only numbers? Idade: <p:spinner id="spinnerBasic" max="120" value="#{spinnerController.number1}"/>…
-
2
votes1
answer128
viewsQ: Javaweb with xhtml
How can I make a menu to enter the date of birth to register a new registration? My code is like this: <!-- Nome --> <h:outputText value="Nome" /> <h:inputText…
jsfasked Júnior Nascimento 679 -
1
votes2
answers88
viewsQ: Is it possible to develop with Codename One for Windows Phone 8?
Is it already possible to develop an app for Windows Phone 8 with Codename One? Or just the Windows Phone 7 version?
codename-oneasked Júnior Nascimento 679 -
10
votes1
answer1565
viewsQ: Launch my Windows application in System Tray
I have no idea how I get my application to start with Windows 7 already in mode System Tray. That is, start with Windows and get the program icon next to the Windows 7 clock.