Questions tagged as 'java'

0
answers

Implementing maximum width of a TextItem in Smart GWT 2.6

In SmartGWT, I'm trying to make a MaxLength into a TextItem . This TextItem is in an editable field of Grid . Below is the code used. How to do a validation in OnKeyPress that, when it reaches the established...
asked by 18.01.2016 / 12:11
1
answer

Problem inserting object with ManyToOne JPA

I'll try to exemplify my problem with simpler classes than in my application: I have, for example, the Main class and an Item class. In Main, I have an Item property annotated with ManyToOne, which I mapped to the database only by the id_item...
asked by 19.01.2016 / 12:27
1
answer

Error compiling LWJGL

When you try to compile a LWJGL code, you gave the following error:     
asked by 18.01.2016 / 23:24
2
answers

Calling JQUERY function with Primefaces [closed]

I want to execute a JQuery call after the click of a button: <p:commandButton id="btnSelecionaLote" icon="ui-icon-pencil" action="#{loteController.selecionarLote()}"> <f:setPropertyActionListener value="#{lote.id}" target="#{loteC...
asked by 27.11.2015 / 14:32
1
answer

Can you block external access in an application?

Is it possible to block a system that is accessing from outside? I have a login system and users are using PHP Curl to load the entire page in their environment. I'm using Java + Jboss.     
asked by 25.11.2015 / 19:14
1
answer

Error: 'Operand type clash: image is incompatible with numeric'

When trying to save an object in the database, it gives the following exception:    org.hibernate.exception.DataException: could not update. [...] Caused by: java.sql.SQLException: Operand type clash: image is incompatible with numeric. I...
asked by 18.11.2015 / 12:19
1
answer

how to style the selected JTextPane text?

What I want is to get the selected text from JTextPane and edit it, for example: change font color, size, and family. The problem is that once I change the selected text once, it does not change anymore. My code is that, it's just changing the c...
asked by 17.10.2015 / 08:20
0
answers

Problem assigning an ArrayAdapter within an OnClick

Method: spnCondPagamento.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { List listaCondPagamento = new ArrayList<>(); for (int i = 0; i < condPagDao.getListaCondPagamento().size(); i++) { list...
asked by 24.12.2015 / 14:22
1
answer

How to make an image reference? [closed]

I want to make a simple app where the user selects an image from the SD card and then can save their reference in sqlite to be able to be displayed in a listview, but I still do not know how I can do that reference.     
asked by 24.12.2015 / 12:26
0
answers

Android - How do I send an Audio to an FTP server?

I'm creating a Wall where people can send text and audio messages to a php server, text messages and the mural work perfectly, but I have no idea how to store recorded audio and send it right away . I saw some examples on the internet and I'm...
asked by 18.12.2015 / 18:32