Questions tagged as 'java'

1
answer

I can not write to JTextArea

I have the class: import javax.swing.JTextArea; public class Semantico { private String tipo; private String variavel; public void verificaSem(String stipo, String svariavel, JTextArea txtSemantico){ this.tipo = stipo; this.variav...
asked by 08.06.2016 / 19:09
1
answer

Error in properties file configuration

I'm trying to set up a properties file. I followed some tutorials but without success. I'm having the following error:    Caused by: java.util.MissingResourceException: Can not find bundle for   base name src.main.resources.properties.message...
asked by 08.06.2016 / 05:23
0
answers

On call to EntityIdentifierReaderImpl # resolves, EntityKey was already known; should only happen on root returns with an optional identifier specified

Using hibernate with class: Text.java package br.com.meusite.model.documento; @Entity public class Texto extends ABeanDao<Texto> { private static final long serialVersionUID = 1L; private static final int cMaxTamanhoIndic...
asked by 20.05.2016 / 20:44
1
answer

ManagedBean methods are not processed

Good morning, I'm the following problem. I have an application that has several ManagedBeans that are working normally. Today I was creating a new bean for testing and this bean does not execute either @PostConstruct or any other method; I cr...
asked by 21.05.2016 / 15:30
1
answer

how to make combobox modify a combobox with items from the java desktop database?

I have managed to do but only works with pre-selected items. CidadeDAO cidadeDAO = new CidadeDAO(connection); EstadoDAO estadoDao = new EstadoDAO(connection); List<ModeloEstado> estados = estadoDao.lista(); jComboBoxEstad...
asked by 20.05.2016 / 15:25
2
answers

Delete file (photo) from the folder when performing update

I'm having trouble with a code. I am creating a form with a profile photo, but when I make a change of the photo in the EDIT, I would like the photo to be deleted from the images folder. Today I can only delete and change the photo, but the old...
asked by 23.05.2016 / 21:49
0
answers

Error while deploying on heroku

Trying to deploy in heroku with tomcat 7 and hibernate and this error appears:    [ERROR] Failed to execute goal   org.apache.maven.plugins: maven-compiler-plugin: 3.1: compile   (default-compile) on project apiexpotaxi: Fatal error compiling...
asked by 15.06.2016 / 22:44
0
answers

About updating only one html tag from jsp page

I have a JApplet application it has a button that when clicking it takes the data typed in the textfield and plays in a url that is an index.jsp and there has a getParameter that takes that field. The problem is that this should be done as ajax....
asked by 15.06.2016 / 18:28
0
answers

How to generate multiple buttons with the same variable and pick them up separately

Hello, I'm going to put the important part of the code here and then I'll explain what I want to do. Main: public static JButton sala; public static int contagemTurmas = 0; botaoSalvar.addActionListener(new ActionListener() {...
asked by 16.05.2016 / 16:50
1
answer

How does the MVC Archiver + Service layer work?

To try to find some documentation for this, if anyone has a book that deals with the subject please inform.     
asked by 17.05.2016 / 18:38