Questions tagged as 'java'

1
answer

JLabel of visual bug when using setBackground ()

When I use JLabel.setBackground(Color); it simply gives a visual bug. Layout: quarto1 = new JPanel(); quarto1.setBounds(10, 11, 158, 82); frame.getContentPane().add(quarto1); quarto1.setLayout(null); JButton novo...
asked by 11.08.2016 / 21:15
1
answer

How can I get an EntityManager from an org.hibernate.Session

Working with hibernate using Session. public class HibernateUtil { private static final SessionFactory sessionFactory = buildSessionFactory(); // A SessionFactory is set up once for an application private static SessionFactory bu...
asked by 11.08.2016 / 15:27
1
answer

Define path to save files in Linux

I have Back-end done in Java where I get some files from the front and save them to a folder. This system ran on a server Windows with Tomcat but recently it had to be migrated to Debian . Previously I define...
asked by 11.08.2016 / 19:12
3
answers

Edit an XLS file already created

I need to edit an XLS file already created, but I'm only able to create a new file and delete the old file, so far it works, but I wonder if you can edit the old file and not have to delete the old one and create a new one with the same name....
asked by 21.09.2016 / 14:29
1
answer

How to extract images and sounds and songs in the jar file of any Gameloft java games? [closed]

I have a mobile game in Gameloft's JAR Format so I can not see where the images and sounds and music are. I only see some bin files (ConditionExpr.bin and ResInfo.bin), some class files (a.class, b.class, c.class, d.class, and.class, f.class,...
asked by 12.08.2016 / 19:19
1
answer

Problem with inserting TIMER into MySQL table using JDBC

Speak up! I have the following problem and I'm looking for the best possible solution. The following code when running a time is saved in the CurrentTime (current time) and sent to the database for the time column. This current time is update...
asked by 15.08.2016 / 01:21
1
answer

Validate registry data (spring-boot + angularjs)

Hello, I'm implementing a web project in spring boot + data + angularjs. Where the client makes rest requests to the server. On the Spring side I'm using repositories to develop the database search with CrudRepository. @RepositoryRestResour...
asked by 15.08.2016 / 13:39
1
answer

How to overlay a JInternalFrame?

The main screen of the system I'm developing opens automatically with% welcome%, and it contains some buttons for registration, calendar etc ... However, when I click on a button to call another JInternalFrame ( register or calendar ),...
asked by 12.09.2016 / 20:51
2
answers

Problems to generate SQL command

Hello everyone. I'm creating a project that handles user registration. In this project there will be several types of users. To simplify, let's call the types of 1,2 and 3. Depending on the type of user, the screens and features that he can acce...
asked by 03.09.2016 / 03:16
1
answer

Internationalization in Java

I'm having some difficulty in internalizing my java application. My question is this: when I have a login screen, for example, and select the option in my JMenuItem: "English", my entire application, my layout, should change according to the...
asked by 02.09.2016 / 12:56