Questions tagged as 'java'

1
answer

How to instantiate a vector

I'm doing a program (college work), and I'm having trouble instantiating a vector. Furthermore it is presenting some errors that I can not solve - one of them is in the while loop, at the closing of the main class.    How do I instantiate...
asked by 10.07.2017 / 04:29
1
answer

How to draw GIF with ImageIO and drawImage

I need to draw a GIF, I have the following code: public BasicBlock(String path, String name, int id, boolean gif){ this.path = path; this.name = name; this.id = id; File img = new File(path); try { image = Image...
asked by 10.07.2017 / 02:22
2
answers

Error in SQLite class

What am I doing wrong in this SQLite class? I'm getting this error: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sqllitetest/com.example.sqllitetest.MainActivity}: android.database.sqlite.SQLiteException: n...
asked by 09.07.2017 / 16:23
1
answer

Control event in the field?

I'm trying to handle a possible empty search, when the user gives enter in a field without typing anything. I've applied a keyboard event, and every time you press enter, the field performs a search. The problem is that if the message appea...
asked by 23.07.2017 / 02:00
1
answer

AlertDialog deformed

Well, could anyone tell me why my AlertDialog gets deformed, with that white piece on top of the text? Here is the code where I created it: AlertDialog.Builder builder = new AlertDialog.Builder(ChoseSecundarioDisciplinas.this,android....
asked by 25.07.2017 / 19:30
1
answer

Eclipse Installation

Can anyone share an updated Eclipse installation and configuration manual, and in this manual have the steps for configuring the environment variables so I can compile and run the projects?     
asked by 06.06.2017 / 13:18
1
answer

Report details are not displayed

I made a report in Jasper Studio 5.6.0, and I imported my generated * .jrxml file into the IDE where I am developing, but anything that is placed in the Details section of the report simply does not appears, even though it is only a simple and...
asked by 04.08.2017 / 19:17
1
answer

How can I separate the items of a sharedPreferences into an Array?

I'm having a question, I've made a checkbox on items in a listview that when marked are stored as SharedPreferences. Then I created a button (Favorites) to access the items marked by the checkbox, but the checked items go to Favorites I re-creat...
asked by 02.06.2017 / 21:52
2
answers

How to store and use a vector in Firebase on Android?

I'm having a development problem with my app that I can not resolve and can not find something to help me. Such an app was running smoothly with data stored in variables, but by including Firebase I had some problems storing an array. I made...
asked by 07.08.2017 / 18:58
1
answer

Control animation speed using the JSlider component

Well, I'm developing a project that simulates the controlled environment of train tracks, where I have 3 trains running clockwise, where the three pass through the same place in certain sections. I'm having trouble implementing the train speed d...
asked by 04.08.2017 / 19:21