Questions tagged as 'java'

0
answers

How to get an object with the Optional interface?

I try to obtain an object from the Person class (class already created) but I want to obtain it with the Optional interface, because the object could or could not be found in a Set of People. The method would be like this: public Optional<P...
asked by 10.05.2017 / 07:57
1
answer

Register and cancel BroadcastReceiver listening on a fragment of Android

I want to start detecting connectivity with a BroadcastReceiver I want to do it in a fragment when it's on screen. In what methods is it the best to record and in which to remove it but contemplating the following? Scenario where th...
asked by 10.05.2017 / 11:58
1
answer

Change the format of the String that returns the LocalDate type

I have a project in which I connect to MySQL and work with data type Date (in MySQL ) and LocalDate (in Java ) My problem is as follows, the method TryParseDate() parsea from String to LocalDate and retu...
asked by 10.05.2017 / 11:25
0
answers

Convert from String to ImageIcon in Java Netbeans

I would like to know how to convert from String to ImageIcon in java. at the time of closing the program I save information in a txt, at the beginning I keep it well. The problem is when I want to reread what is stored in the...
asked by 25.04.2017 / 08:15
1
answer

I do not work the stack swing

Esoy doing a stack balancing program, I run the program but nothing happens, the execution time is 0 seconds, could you tell me what I'm wrong? This is the code: package bracket.checker; import java.util.Stack; /** * * @author Usuario */...
asked by 25.04.2017 / 06:13
1
answer

search icon is not shown at the beginning

I have several fragments and activities in my app, in which I have implemented searchview and everything works correctly, the problem happens in a new view in which I want to implement it where only the toolbar appears alone, without the icon, b...
asked by 25.04.2017 / 05:02
2
answers

How do I get a button to eject me from the program but before that play a wav sound? (Jframe Java Netbeans)

I want a button to exit my running program, but in the same way I want to press a sound first (before launching the program) ... How should I achieve it?     
asked by 14.04.2017 / 09:34
2
answers

Is it possible to connect a Frame created in a JFrame, and how to achieve it?

] 2 In the palette there is a Frame option that creates a window inside another window, however, I do not know how to connect them through a button or if this is possible. The window created normally with the JFrame form if it appears in...
asked by 14.04.2017 / 12:06
0
answers

Sending messages with android studio

Best regards to all the problem is this: I have this code to send text messages works perfectly but I would like to know how I can do that when a message is not sent by any problem that is presented to the application in automatic, retry send...
asked by 12.04.2017 / 14:23
0
answers

SWT Label bold

It is a RCP application, you have a (a) LIST of Names, this is downloaded by means of a FOR loop. That is, they are menu items and they are located on the left of the screen with their respective layer (composite). Now, this works, the dif...
asked by 17.04.2017 / 14:37