Questions tagged as 'java'

1
answer

Problems with JPanel exchange within JDialog using Swing

I'm having a problem with a system I'm developing with regard to screen switching. Sorry for the lengthy post, but I could not explain the problem otherwise. It has a JFrame principal with a menu that is JButtons and a JMenuBar ....
asked by 09.07.2015 / 22:51
2
answers

How do I check if my application is open on mobile or web?

I need to make a style.css for mobile and another for web.     
asked by 28.08.2015 / 14:39
1
answer

How to persist a record in the webservice database through restful Java?

I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I, within a java application, make an http request by passing js...
asked by 06.09.2015 / 07:06
1
answer

Foreign key recording as null

Foreign key is writing as null. I have done several searches I could not find a solution. You could help me find my mistake. This is an example that I researched on the internet, if I can get the foreign key in the bank popular, I can do with th...
asked by 13.10.2016 / 21:49
2
answers

OneToOne Mapping JPA 2.2 Unidirectional

Hello, everyone. I'm using JPA + hibernate 4 on top of the database structure (MySQL 5.6) below. I'm in doubt about the @OneToOne relationship. What's happening: Entity BodyPart has a @OneToOne relation with Body...
asked by 04.11.2016 / 14:52
1
answer

Assign a function to JComboBox

I have the following doubt, I have a combobox, and I want it when clicking on one of the combo options, it does something. I would like to know how I put a variable or method "bound" to combo options, for example if I clicked on option 1, it lis...
asked by 10.03.2017 / 18:17
1
answer

Picasso image cache

I'm testing the Picasso library on android in two situations: 1 - When uploading an image, in a url post (without sending% of authentication%), the image is loaded into headers , and ImageView keeps a Pica...
asked by 23.02.2017 / 15:39
1
answer

"illegal start of expression" when compiling in CMD [closed]

I have the mini program, which I'll show below. When compiling at the command prompt, I got an error on line 47 and it says:    illegal start of expression I have in the program a list of entries of the size defined in ListaArray ....
asked by 21.09.2016 / 10:34
1
answer

POST Spring Data REST does not work with relationships

I'm having a project using Spring Boot and Spring Data Rest to serve a Rest API. When I'm serving an entity without relationships, it works without problems. The problem is when I use an entity with relationships. I can not add new entitie...
asked by 28.05.2016 / 16:18
2
answers

How do I pass parameters from the last Fragment to the previous Fragment?

I have the following situation: Fragment A is opened and it, with a click event, goes to Fragment B . When in Fragment B and pressing the back button, in order to return to Fragment A , I would like to pass some paramet...
asked by 04.04.2014 / 22:24