Questions tagged as 'java'

2
answers

go from one fragment to another when selecting an item from a ListView

When executing and doing click on the item of listview the app is closed. Any ideas to solve this? The list is in a fragment, and I want to go to another fragment I leave my code public class DiezFrut extends Fragment { //...
asked by 18.01.2017 / 00:57
1
answer

Set Limit of a certain number in a jtextbox in java

I want to place a limit of 10 in a jtextbox in java but what I get is to have a limit of 19, I ask for the first position of my chain, if this is 1 I grant a limit of 2 allowing me to place another number for place the 0 and thus get the 10 but...
asked by 21.01.2017 / 03:17
1
answer

Access layout elements after the onMarkerClick event

I am stuck in the development of my application and I can not find anything to solve the problem. Once the onMarkerClick event occurs, after an asynchronous call has occurred before. When the clickmarker event skips I can not access tw...
asked by 06.01.2017 / 13:04
1
answer

Transform Date to String and print it to a JDateChooser

I need your help, I have searched for different solutions on the internet but I have not found the correct one. My question is how can I transform from Date to String by obtaining the date from my MySQL database? The solution I...
asked by 05.07.2017 / 03:11
2
answers

validate negative numbers

I need a JTextField can only accept values of both negative and positive numbers but I can not get the '-'. I've already tried several things. private void JTPtxKeyTyped(java.awt.event.KeyEvent evt) { char a = evt.getKeyChar();...
asked by 21.12.2016 / 03:57
2
answers

I can not test the application in Android Studio

It happens to me that when I click on the Run button to try the application I do not see anything but I do not see anything, I'm supposed to always get this window when I run my projects, but specifically in the project I'm in, I do not se...
asked by 09.04.2017 / 20:24
1
answer

Unselect row by deselecting the checkbox in a jtable

I have 2 classes that convert a column into a checkbox. The problem is that when removing the selected one from a checkbox, the row is still painted, and that affects me in some methods. I need that when removing the selected one to the row t...
asked by 29.12.2016 / 21:22
1
answer

How to make the text of a JPasswordField visible in java?

I've been researching how I could preview the key entered in a jPasswordField by pressing a JButton. But I happen to find nothing. Could you tell me if you can, and if you can, how do you do it?     
asked by 20.10.2016 / 09:16
2
answers

Solve the Multidex error in Eclipse without the build.gradle file

I get the error of "Unable to execute dex: method ID not in [0, 0xffff]: 65536". The point is that I do not have a buid.gradle file in my application. My project is done with Eclipse. Is there a solution? Or put code in another ec...
asked by 31.03.2017 / 02:12
1
answer

Create a web service with java that returns a query from bd in json [closed]

I wanted to know if you can explain or pass a video or page that explains how to create a web service with java where I have to pass a string and given that string go to the bd to find a record and return the data of that record in json format....
asked by 31.03.2017 / 20:29