Questions tagged as 'java'

2
answers

Ask the user if they really want to quit

I have the following code: public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); if (id == R.id.nav_camera) { // Handle the camera action }...
asked by 12.12.2016 / 13:47
2
answers

How to fill TextText setText from an ArrayList?

I get an array with interest items and should set them to setText of a given TextView . I want all items in this array to appear on the screen, horizontally. In my layout xml, I just put 1 textView to get all the items that com...
asked by 14.12.2016 / 17:08
1
answer

Minimize application for the system tray

I made an application as requested by a client, but at the end of the project the same informed me that the application should open in Tray Icon, and the minimized continue running in tray My application is already fully developed, tray icon...
asked by 15.07.2016 / 15:40
1
answer

How do I save the values of a String in a Double variable?

I have a String with the value x inside it (String value="x") I need to pass this value to a Double Variable, how do I pass the x value of the String to the variable? So if I convert from String to Double the value of the Double variable i...
asked by 22.06.2016 / 20:12
1
answer

Is there a framework to aid in the authentication process when using Google Appengine?

I do not want to use session in the application. Would Spring Security be the only option? In this case it would be a SPA application.     
asked by 20.06.2016 / 03:37
1
answer

Field int as string

I'm working on a code for a college job, but I'm having problems, even though the "home" is set to INT, netbeans continues to display:    "Incompatible types: String can not be converted to int" Below is the code, thank you! package tic...
asked by 07.10.2016 / 03:33
1
answer

Return focus to a JFormatedTextField after clicking button

I need to click on the Clear button on the Login screen, the CPF and Password the cursor will return to the CPF field. JFormattedTextField ftUsuario = new JFormattedTextField(); try { MaskFormatter formatter;...
asked by 06.10.2016 / 19:29
2
answers

How to divide a number stored in a string and check if it is divisible by 495?

For example a number that does not fit into a int and I store it in a String . How do I see if it is divisible by 495?     
asked by 09.10.2016 / 12:36
3
answers

JSF - Select Item of a Set

I want to make an xhtml that returns a list of users and on the side a button will appear to select a certain user. Something like this: + ---------------------------- + | ID | User | (Button) + ---------------------------- + My questio...
asked by 03.05.2016 / 07:30
1
answer

Eclipse Message: The selection can not be launched, and there are no recent launches [closed]

I've set up a program in JAVA and when I went to run it appeared this message, does anyone know why? If anyone knows and can explain myself I am very grateful:) Well,thisismycodeifitiseasiertounderstandwhyusingthecode:importjavax.swing.JOpti...
asked by 02.04.2016 / 21:45