Questions tagged as 'java'

1
answer

I can not call JOptionPane in Eclipse

Well, I'm not able to call JOptionPane in any class in eclipse, I tried Netbeans, and it ran normal. Can anyone here know what it can be? Error message:   Multiple markers at this line   - Access restriction: The type JOptionPane is...
asked by 05.03.2016 / 18:49
1
answer

Importing galleria images into the Android app

I am putting together an App in which I want it to allow, through a button, that I choose images from the gallery and include and save within the application. But I have a problem with IMAGE_GALLERY_REQUEST because NetBeans says it can no...
asked by 23.01.2016 / 17:35
1
answer

Show text typed in text field after button click

The code below I got from the internet is working for me. In main , it executes a form with the name to type and the ok button. I wanted to run in main , right after the new MeuPrograma(); a System.out.println("#...
asked by 15.01.2016 / 19:09
2
answers

Convert string into array format into an array and retrieve values

In the database I have a TEXT where an array is saved in this format: [ [ resumo: null ] [ datainicio: 2015-09-17T00:00:00.000-0300 ] [ datafim: 2015-09-22T00:00:00.000-0300 ] [ equipamento: 3421 ] ] I need to retrieve...
asked by 22.09.2015 / 14:32
1
answer

Tray Icon Windows

I'm creating an application to back up, and I plan on putting the full-time wheel application into the machine. I think of putting the application in the Try Icon of Windows but after some tests I managed to make it work only that by minimizi...
asked by 23.09.2015 / 14:34
1
answer

Pause program with Timer

I need to use it to wait 2 minutes before running a method. I already researched and can not find anything clear enough to help me. I've already used Thread.sleep() plus it locks the whole thread , and that's not what I'm looking fo...
asked by 16.09.2015 / 18:52
2
answers

Method does not correctly show expected result

I have this interface public interface Promocional { boolean aplicaDesconto(double porcentagem); default boolean aplicaDescontoDe10Porcento() { return aplicaDesconto(0.1); } } The class LivroFisico that extends...
asked by 01.08.2015 / 06:01
1
answer

Save output after applying a replace

Hello, I have the following code, but I need to apply a replace to output ( FileOutputStream ) I get via http before saving it. public void DownloadFile(String fileURL, String fileName) { new Thread(new R...
asked by 26.07.2015 / 04:29
1
answer

Inhibit RequiredRoleInterceptor information in demoiselle log

When using the demoiselle framework, with every user interaction, the system registers the br.gov.frameworkdemoiselle.security.RequiredRoleInterceptor information in the server log. The logs get extremely large due to the amount of inform...
asked by 05.07.2015 / 01:53
1
answer

MySQL Time Comparison

I have a schedule where I register an appointment, this appointment has Hora Inicial and Hora Final . But now when I register a new appointment I have to do a check to see if the hours are not between the hours already registered. E...
asked by 10.07.2015 / 20:18