Questions tagged as 'java'

1
answer

ArraList java does not return data

My question is the following problem. I'm building an application (didactic purposes). In this has a Contact class that receives a String with a name, a String with the phone, and the builder initialize the date and time of the object's creat...
asked by 28.05.2016 / 18:25
0
answers

Active Jdbc Association not work

Hello. I have two classes: User and Competition. I need to make a relationship between the two, as below: public class User extends Model{ } @Table(value = "competencias") @BelongsTo(foreignKeyName = "user_id", parent = User.class) public...
asked by 27.05.2016 / 21:34
3
answers

How to save which Navigation Drawe item I selected

Good morning, guys, I'm developing an app and I put a navigation drawer in it pretty basic, and I'd like to know how to "save" which item is selected. And so whenever the app opens, it will open in the fragment that I put in that menu item (navig...
asked by 28.05.2016 / 05:37
1
answer

Javascript returns error message "TypeError: applet.retornaMD5 is not a function" when calling applet method

My applet is signed and all its methods are as public. This error message appears for all browsers I tested. Follow the codes: Main.java public class Main extends Applet { private String ip; private String macLocal; private String...
asked by 27.05.2016 / 06:51
1
answer

Get line from JTable after Filter Data

I am using a TableModel (not the DefaultTableModel ) that populate with data from banco ( MySQL ), also use a Class to filter through a JTextField . It is working correctly, but I would like, after filtering throu...
asked by 29.06.2016 / 03:57
1
answer

Simultaneous JTables

Hello, I would like to know if there is a way to select 2 JTables simultaneously, I will explain: I need some columns of my JTable, do not change when the horizontal JScrollBar is changed, according to my research, there is no way I can do th...
asked by 16.05.2016 / 15:41
1
answer

Jsoup returning no value

I have a problem with Jsoup library, which when I try to make the connection to a certain page, it simply does not return any value from the connection. public static void main(String[] args) { try{ Document doc = Jsoup.connect("...
asked by 15.05.2016 / 18:28
0
answers

Using the PC as an OBEX bluetooth Java MAP client

I studied the MAP specification and am trying to send an x-bt / message message from my PC to my mobile phone using api bluecove. I get connection via OBEX, without error, but I have no return in InputStream, and the message is not sent. M...
asked by 16.05.2016 / 16:50
1
answer

Example for interacting res / xml / prefs.xml with an activity.java

As much as I've searched, I've never found an exact example where a preference file interacts with a Java activity, for example: private void Bemvindo(){ Toast.makeText(this, "Seja bem vindo", Toast.LENGHT_SHORT).show(); } And in the prefer...
asked by 20.07.2016 / 23:19
1
answer

Android app without connection to valid IP addresses

I'm having a very strange problem with my android application, in some cases my application can not respond to valid addresses from other sites. Explaining my application, it is a data collection application in the field, where it connects with...
asked by 21.07.2016 / 14:12