Questions tagged as 'java'

0
answers

Get textarea data from a JTable

I know that using DefaultTableModel is not the best way to do the tables, but I have not yet mastered AbstractTableModel , I have a table that is edited as JTextArea, but when I type it does not come in the variable of cell of the t...
asked by 29.04.2016 / 19:50
1
answer

Assign selected item to Jcombobox

I have a problem where my jComboBox values are not being returned but the values in the database are correct. I have a Vehicle Master jframe, which when triggered by the search button, calls the pesquisaVeiculo methods and calls a jDia...
asked by 26.04.2016 / 13:15
0
answers

Open android studio application on phonegap? t

I developed an app in Android Studio and would like to export it to the phonegap in order to be able to use it for multiplatforms. How can I take advantage of my project in android studio in phonegap since they both use java?     
asked by 26.04.2016 / 17:51
0
answers

How to create a class and have a property of type "method"?

Some time ago I had seen an Android Java code like this: button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click } }); How can I subscribe to...
asked by 27.05.2016 / 03:10
1
answer

How to do an update in an array with MongoDB and Morphia?

I need to update an Ingredient in the ingredient list. Until then I just know how to update the entire JSON. How do I update only one item in the array? { "_id" : ObjectId("573c721f75fe72149c4d9987"), "className" : "br.com.teste.productdatas...
asked by 26.05.2016 / 20:33
1
answer

Validate if method exists in webservice and customize return message

I am creating a webservice rest, and it is working properly, but there is a situation that I could not handle: if the url provided is searching for a non-existent method, the requester is redirected to the error screen of my system, I would like...
asked by 27.05.2016 / 19:41
1
answer

Pass J2ME application for motorola i465 and i418 phones

Well, I'm developing a j2me application for two old nextel beeem phones, but I can not get the application to any of the cell phones. It apparently has software to perform this task, the iDEN Java Application Loader, but the installer I downl...
asked by 09.05.2016 / 23:47
0
answers

get xml files in a Java application

Hi, I'm new to programming, I'm interning in a company of Ti and I need to make a java application that takes .xml files generated in a php system of medical consultations and makes them available in a list that is always up to date with each qu...
asked by 10.05.2016 / 05:12
1
answer

View Page Android - pick list of images inside the App and set it on the View page.

I am having a problem when I need to set my variable in View Page. I have an Activity that looks for the images inside the App and arrow in a String Array, until then everything is correct, I use the code below. ContextWrapper cw = new Cont...
asked by 09.05.2016 / 17:50
0
answers

Doubt when saving image in mysql database

Good evening, it's as follows: I have a JLabel = jlImage, where an image is loaded as shown in the btnCamageImageActionPerformed method. But I want to use the save button to insert the image into the database, but I do not know how to get the...
asked by 09.05.2016 / 01:13