Questions tagged as 'java'

1
answer

Truth Tables (Kotlin)

It's like this for the first time here, I'm learning to use the programming language Kotlin, I have to develop a Boolean formula with true or false, I already do it in Java and it stayed like this private static final boolean VALUES[] = ne...
asked by 01.09.2018 / 19:28
1
answer

How to adjust a JComponent on top of others using the GridBagLayout

Hello Good! It turns out that I'm starting to try to use the Gridbaglayout to be able to do my interfaces without the help of GUI tools like the Netbeans and I'm currently lost .. You see, I have a question and if it is possible to accom...
asked by 03.09.2018 / 06:08
0
answers

How to send a Data from a class so that a JInternalFrame function can receive it?

I have a JInternalFrame where I call a function that is in the class Trabajador , that function fills the Jtable that is in the JInternalFrame . Now what I want is to pass a value through a call to a function that is...
asked by 29.08.2018 / 18:20
1
answer

How to remove the frame of a photo taken with android studio

The problem I have is that when you take a photo from my application and I proceed to save it, it is stored with a frame on the sides. I wanted to know how I can delete this framework. I leave my code private void openCameraIntent() {...
asked by 29.08.2018 / 20:02
1
answer

Connection failed through JNDI

Running under a Tomcat 9 and JDK 1.8, using Spring 5, I am trying to configure a JNDI connection to use a DataSource. If I configure Spring, through XML, I get my DataSource and everything seems to work fine. I configured the DataSource in my...
asked by 30.08.2018 / 05:53
1
answer

How could autogenerate chain type code?

I have the doubt on how to generate auto-generate chain codes with a counter that is: e001 e002 e003 e004 ... the following code is generating e000 e000 e000 e000 If someone could help me, it would be great, thanks public cla...
asked by 18.08.2018 / 03:12
1
answer

Problem with OneToOne relationships in Hibernate

I'm learning how to use the Hibernate framework, I'm in OneToOne relationships, the problem I have is that when doing the bidirectional relationship, I miss a NullPointerException and I do not know what the failure might be. Employee: packa...
asked by 05.09.2018 / 14:36
1
answer

The JButtons do not work

I am trying to put an icon in the JButton with one of the constructors of the JButton class. When I execute this project, the three buttons do not appear, but when I use a constructor without an icon, the three buttons are displayed. I do not kn...
asked by 04.08.2018 / 13:24
0
answers

org.springframework.beans.factory.UnsatisfiedDependencyException when I do @Autowired

I have a problem when publishing my project on my server, I have tried several solutions and none of them worked, I have all the annotations correctly as well as the XML configuration so I must be ignoring something. UserController.java @...
asked by 05.08.2018 / 07:56
1
answer

Check if an element exists inside an Array

It turns out that I'm doing an app that contains a list that is launched from CustomDialog . When selecting one or more of its items I save the ID's in an array, thus leaving [1, 3, 5, 6] . With a "Cancel" button the ArrayList...
asked by 02.08.2018 / 21:35