Questions tagged as 'java'

1
answer

How to change Growl's position on the screen?

I want to change the position of Growl but I apply it in CSS and in the time does not change anything in the position when it appears on the screen, I want to center for example. No template: <h:head> <meta http-equiv="Content-...
asked by 31.05.2017 / 03:55
1
answer

Is there a function that changes the background of an activity in android studio?

Is there any way to create a function that changes the background of an activity? I need a button that when clicking will change the background of the activity     
asked by 30.05.2017 / 23:04
1
answer

Perform a search from a certain date

I'm reading a csv file that generates data when a particular page was accessed. However I am not able to implement a method that allows me to perform the search from a date that I wish. Follow the code import java.io.BufferedReader; import jav...
asked by 31.05.2017 / 01:49
1
answer

You are not setting the value in the query.setParameter when trying to query the database

I have a problem when setting a value in query.setParameter . Using EcliseLink and MySQL, I made a query without setting parameters and it worked, what could it be? Class where I try to query: /* * To change this license header, ch...
asked by 02.06.2017 / 00:26
1
answer

Change Layout with your finger

Hello, I'm wondering how do I change one layout to another by dragging the screen .... as if it were in a gallery but instead of photos it would be different layouts Thank you !!!     
asked by 02.06.2017 / 00:48
1
answer

How do I validate a value passed by the Set?

I wanted to know how I would do when adding a new value for the length and width through setLength and SetWidth, and that value goes through validation ((x > 0 & x < 20)? x: 0 ): public class Rectangle { private double length; priva...
asked by 16.05.2017 / 04:15
2
answers

JPA - Java does not insert data into the database

Bean @Named("proprietarioMB") public class ProprietarioBean implements Serializable { private static final long serialVersionUID = 1L; @Inject private ProprietarioService proprietarioService; @Inject private Propri...
asked by 15.05.2017 / 20:29
1
answer

Free DB for distribution along with commercial application

I was walking around reading certain licenses of some DBMS software along with the DB itself and a very confusing question came up. MariaDB (Free version) it is open-source, but could I distribute it along with my application commercially? I'...
asked by 26.05.2017 / 08:33
1
answer

Can not find file directory

I have a method that is part of a class to capture the client signature. But it is giving problems when opening FileOutputStream , "No such file or directory" appears follow the method: /** * * @param MEDIA_DIRECTORY ex:...
asked by 14.05.2017 / 08:24
1
answer

"is not a jdk java home valid"

I'm trying to install weblogic 12c from a .jar. I run the command java -jar wls_121200.jar , but the CMD returns me    This installer should be run using the Java Development Kit (JDK),       however, C: \ Program Files \ Java \ jre1...
asked by 12.05.2017 / 19:49