Questions tagged as 'java'

1
answer

Change title bar and window icon

I want to change the icon of the title bar of the Java window, as shown below: I'mgoingintheinitComponents()methodandleavingitasitisinthecodebelow,butthesetIconImage(iconeTitulo);lineisanerror.publicFrmConfiguracoes(){initComponents();URLcam...
asked by 23.08.2016 / 04:41
1
answer

Probability in data postings

Hello, guys! I'm learning to program java and I came across two exercises: in the first one, I should create a script that mimics a dice roll; in the second, a script that would cast the dice 1 million times and show how many times each number w...
asked by 27.08.2016 / 00:53
2
answers

I'm trying to extend StringRequest from the volley package, but the import is not working, why?

This is the code I use to import. import com.android.volley.Response; import com.android.volley.toolbox.StringRequest; And here below is a print of my screen showing that I have already installed the volley package correctly. Update1:Iup...
asked by 19.08.2016 / 20:41
1
answer

Data not saved in the database

I'm using Java, JPA, PrimeFaces, Wildfly and Mysql, not much to see, but it's good to know. I fill in all the fields, all right the verification is performed. When I click on save the success message is displayed, but nothing is saved in the...
asked by 17.08.2016 / 22:02
2
answers

Query with dynamic column spring data

I need to perform a select using the @Query of spring data, however I need to pass the column name by parameter Example: @Query("SELECT g FROM Grupo g where g.? = ?") Page<Grupo> findTeste(String campo, String valor); To call meth...
asked by 22.08.2016 / 14:37
1
answer

Problems with connection to MS Access bank

I developed a web application whose database is MS Access, well, when the user logs in I send the data by ajax to the java class to do the login validation and password, the problem is that when the system will connect in the bank my connection...
asked by 31.05.2016 / 13:35
2
answers

SmsManager on Dual Sim Phones

I've been researching the subject, but have not yet seen any definitive solution to the problem. Well, my application does send SMS from SmsManager however, it does not ask which chip to use when running in a Dual Sim application, simply because...
asked by 14.06.2016 / 04:19
2
answers

Access control and permission

I have a CRUD project to manage teachers and courses at a college using jsf + primefaces + jpa. My problem is this: There are users who are the course coordinators and the users who are civil servants. Officials have access to the list of a...
asked by 30.03.2016 / 14:30
2
answers

Add line in JTable when clicking the button

I'm starting to create an interface in Java, an example I'm trying to do is to have a form with textField nome and email , and clicking the Enviar button will% for my textField , but I am not able to manipulate my ta...
asked by 30.03.2016 / 20:37
1
answer

Iterator in MVC pattern

I'm doing a project and it was requested to build an iterator class. This whole project is being built based on the MVC standard. So, what would this class be Iterator and how am I going to use it? For what I've been researching seems to be of s...
asked by 25.11.2015 / 12:19