Questions tagged as 'java'

1
answer

Execute sql in java

I have the following code: <bean id="hibernateTemplate" class="org.springframework.orm.hibernate4.HibernateTemplate"> <property name="sessionFactory" ref="sessionFactory" /> </bean> My class: public class DataBaseSer...
asked by 16.06.2017 / 07:40
1
answer

Problem with JButton in Java

I have put an image on my button and with setBounds I have positioned it on the screen but for some reason sometimes it goes well and sometimes the button occupies the whole screen Images   link   link Why does this happen? public class...
asked by 20.06.2017 / 19:56
1
answer

FileNotFoundException when using http: // user: [email protected]

I am trying to access a file that I have on a server, which is protected with .htpasswd . And when trying to access from my app in android I get the following exception:    java.io.FileNotFoundException:    link The code I u...
asked by 20.06.2017 / 10:29
2
answers

Send console values by REST API

I have a project in Spring Boot that connects to Postgresql and sends the values by console , what I'm looking for is to be able to send it through JSON in a REST query, but I do not know which part to change the project. That's what I'm lookin...
asked by 09.08.2017 / 21:23
1
answer

java.lang.nullpointerexception when loading table with images

I am in a dead end and I need help, my mistake is as follows. When loading a table with images from my BD data% MySQL I get it    java.lang.nullpointerexception and I do not know what its cause or motive is. The method I use to lo...
asked by 20.06.2017 / 01:26
1
answer

Why does not the window change color?

The following program tries to change the color of the window by pressing a button, whose name is the color to which the window will be changed. The code does not throw an error but it does not change the color of the panel. The idea is that you...
asked by 19.06.2017 / 08:10
2
answers

Buttons in Java [closed]

There is some way of styling or modeling a button on netbeans, I do not know if I explain myself. So the Button does not look with the simple style by default     
asked by 04.06.2017 / 01:39
1
answer

Is it possible to select several data inserted in a jList in java?

How can I select 3 data from a list in java? With this code I can only select a value from the list, I need to select 3 of them and save them in each of the String variables that appear there. String apunt,apunt2,apunt3; if(ListaUn...
asked by 05.06.2017 / 14:49
1
answer

GLIDE Caused by: java.lang.OutOfMemoryError: Failed to allocate to 96000012 byte allocation with 15189568 free bytes and 74MB until OOM on Android

I am creating a giant image viewer, when I try to download a 15MB image here to see her As an image viewer I use Subsampling Scale Image View which is optimized for displaying large images. final SubsamplingScaleImageView imageView = (S...
asked by 04.06.2017 / 16:07
1
answer

Error ClassNotFoundException in the return

The error I find is using a class that inherits from AsyncTask on Android. Inside I use an object of my class User, it communicates with a server, it handles the data ... until I do the return and I skip this exception. The class is imported...
asked by 11.06.2017 / 17:21