Questions tagged as 'java'

1
answer

Background in JDesktopPane without losing quality and expandable

I have code to add a background image to a JDesktopPane and it works perfectly on 16:10 widescreen screens. However, when the screen is a bit wider (16: 9), it does not fill the rest of the background. I've seen some other possible ways t...
asked by 16.05.2017 / 14:56
0
answers

How do I access a pdf file stored in R.raw in the android SDK?

I think I'm missing some information for the pdf file to appear in my app. I used the following line of code inside the OnCreate method: PDFView novo = (PDFView)findViewById(R.id.pdfView); novo.fromAsset("arquivo"); But stil...
asked by 17.05.2017 / 17:44
0
answers

Android Retrofit 2 Simple XML Converter Response

I'm using Retrofit 2.2.0 and Retrofit SimpleXML Converter 2.2.0. I added the simplexmlconverter to the retrofit instance with the addConverterFactory method. The problem is that when I get the response from the server, the following error occ...
asked by 17.04.2017 / 21:16
2
answers

Hibernate does not automatically create table in mysql

I'm studying Spring with a bit of Hibernate, where I stopped in a situation I can not get through. I've set up the hibernate code for creating tables in the database, but when I run the application it does not create. My template class:...
asked by 17.04.2017 / 21:15
0
answers

How to expect user response? [closed]

Hello, I'm making a Genius game, one that needs to select colors in the right order ... And I'm having a hard time playing the part of the player ... public void jogadorJoga(){ } In this method I need to make the program wait for the...
asked by 12.04.2017 / 02:04
1
answer

Consume .jar in java web project

I created a .jar (script.jar) file that contains the "print ()" method only returns a string and I would like that when I click a button in my Java Web application (JavaEE) this "print executed. Script.jar file method package jardeteste.met...
asked by 12.04.2017 / 18:06
0
answers

What's wrong with Java? [closed]

What are the problems and limitations of Java? It can work Java, but with consideration and knowledge, without getting carried away by the emotional. Preferably quoting which alternative is better than the corresponding behavior in Java and w...
asked by 12.04.2017 / 15:37
0
answers

Method of repulsion based on Helbing model

I'm developing a crowd simulator following the Helbing Social Forces model, but I'm having a problem the moment the collision between the agents happens. When the collision occurs the repulsion method is called to calculate the new position fo...
asked by 10.04.2017 / 16:39
0
answers

How to represent a class diagram between Manager and employee

Hello everyone! I have a Food Truck type system and I need to know mainly the relationship of the manager and employee ... Is my diagram correct? Module 1 mainly. • Specification: Manager module I. Creation of an employee (enrollment,...
asked by 26.05.2017 / 01:14
0
answers

Problems with Post Call

Next I'm taking the following error when calling a POST method 405 (Method Not Allowed) follows the method I'm trying to call @RequestMapping(value = "/upload", method = { RequestMethod.POST }) public @ResponseBody Object upload(@Requ...
asked by 26.05.2017 / 15:39