Questions tagged as 'java'

1
answer

How to convert numbers 2.15600e + 03 (euler) to numeric type?

I have the following problem: I have to read a file that contains several very large numbers as shown below. When you try to read them and send them to a variable double / long / int, the error acknowledges that it is a string . I would...
asked by 07.05.2015 / 12:37
1
answer

I would like to know how I use Swing [closed]

I'm learning Java Eclipse and would like to know how to use Swing. Do I need to install? How does it work?     
asked by 22.04.2015 / 03:00
1
answer

How to disable the scrollView interaction on the user's screen?

On the screen, the user should not be able to tweak Scroll , his move I'm doing all by code like this: Drive: public void move(View v){scroll.scrollTo(160, 0);} I'm looking for a way to block moving the screen to make it just by...
asked by 29.08.2016 / 13:58
3
answers

How to browse lists?

I wanted a solution to go through a Practical List. You do not have to show any results because I'm going to need to go through a list of people (objects) and generate an accounts receivable from each, but first I need to know how I can go th...
asked by 13.05.2016 / 13:39
1
answer

How to put Month and Year only in DataPicker (JavaFX)

By default (by javaFX scene bilder) comes the datepicker month, day, and year. I would like to know how to take the day, and leave only month and year. If you have it, thanks!     
asked by 09.05.2016 / 02:56
1
answer

Script language for JVM and DVM

I intend to use a script language coupled with Java SE applications, my fear is to develop something and then later have a hard time porting it to the Android platform. I'm not a professional in the area, but I know the importance of portability...
asked by 08.05.2016 / 05:52
1
answer

Why is my app not compatible with some devices on Google play?

I posted an app on google play, but unfortunately it is not available for some of my devices. I'm very confused because in the development with Eclipse, I used the same devices for testing and they work perfectly. Are there any missing settings...
asked by 24.12.2014 / 02:04
1
answer

How to use variables in a location outside the scope where they were created?

I have the following code: public class TracoActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_traco); int mc = 15;...
asked by 26.12.2014 / 07:31
1
answer

java.lang.NullPointerException in this code

This is giving java.lang.NullPointerException error in these two classes. import javax.swing.JButton; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField; public class PrimosPanel extends JPanel { priva...
asked by 09.12.2014 / 11:22
1
answer

CheckBox checked / unchecked does not follow instructions

Activity starts with the layout activity_home and the CheckBox unchecked. When I touch% color, the layout becomes CheckBox , but activity_home_avancado remains unchecked. On the second touch, it is checked...
asked by 17.12.2014 / 04:36