Questions tagged as 'java'

2
answers

Login that compares user input with encrypted data in MySQL

I'm having trouble finding a way to compare the data entered by the user to a jPasswordField on the login screen and compare it with the encrypted password in AES and saved in the MySQL database. Can anyone help me? Save button code th...
asked by 17.06.2017 / 20:32
1
answer

Creating the "persistence.xml" JPA / Hibernate file

I wonder if there is a way to setup the creation (the settings) of persistence.xml at the time of project creation. Example of aqruivo: <!-- propriedades do hibernate --> <property name="hibernate.dialect" value="org.hibe...
asked by 14.06.2017 / 15:34
1
answer

(Android Studio) Even or odd

I'm a beginner in Android Studio and need to make an app that gets a number in EditText and then tell me if it's even or odd, it follows my current code: I do not know what and where to put it to when I hit the button (I already did) have this r...
asked by 14.06.2017 / 16:07
0
answers

I used the code below, and the code below. But it does not save the title of the Jtable lines, how to save the titles of the lines?

link MessageFormat header = new MessageFormat("Report Print"); MessageFormat footer = new MessageFormat("Page[0,number,integer]"); try { table.print(JTable.PrintMode.FIT_WIDTH, header, footer); }catch(Exception e){...
asked by 31.05.2017 / 21:19
0
answers

POI: Read from specific line and send to DB

Hello. I am working on a TCC in JAVA and one of its functions will be to read EXCEL files and send the data to the Database. I'm starting small in JAVA and some things still confuse a lot, so I've researched a lot about it. The question is: H...
asked by 31.05.2017 / 18:13
1
answer

How to manipulate the location of the JLabels, having a wallpaper?

I'm trying to make an app that has a wallpaper, but I can not change the JButton or JLabel position. I can only do it if I do not have a background. Follow my code: public class teste extends JFrame{ public teste(){ JLabel t...
asked by 31.05.2017 / 15:05
0
answers

List Linked Java net beans

I have a problem that is basically a customer service that consists of creating a CRUD of clients and then selecting a type of attendance (A, B, C), and then show show in order. I am using LinkedList but in the service part I can not save the da...
asked by 08.06.2017 / 00:05
1
answer

How to delete multiple rows in datatable

I'm trying to delete multiple rows in my data table at once and get nullPointerException. I am sending the code Bean @Named @ViewScoped public class PesquisaFamiliasBean implements Serializable { private static final long serialVersionUID =...
asked by 29.05.2017 / 17:58
1
answer

NullPointerException error when saving object [closed]

I select the object through the bean and the link in the data table change in a dialog and when giving the submit of the dialog I get the nullPoiterException error. Would you know why? Bean code @Named @ViewScoped public class PesquisaPrevi...
asked by 01.06.2017 / 19:51
1
answer

Response to preflight request does not pass access control check: In 'Access-Control-Allow-Origin' header is present on the requested resource

I'm doing client / server testing where the client is being developed with angularjs and the java + tomcat + jersey server. When I try to make a client-side post, it gets to the server to the right place, but the answer is that it does not ar...
asked by 01.06.2017 / 19:59