Questions tagged as 'java'

0
answers

Change app background in "recent apps"

How to change the background of the application when you click the square button (recent applications)? I already researched and some indicated using onPause and onStart to change the background using getWindow().setFlags(Wind...
asked by 17.04.2017 / 18:33
1
answer

Coding the closing of an application

Hello, good afternoon everyone! I have a problem with the company software. I created a serverSocket when starting the application, and with this I can control so that only one application opens on the same machine. However, when I close the...
asked by 05.04.2017 / 20:50
1
answer

I can not put burger symbol in Navigation Drawer Panel

I'm trying to put a navigation Drawer Panel in my app, but I can not put the burger symbol on my MainActivity . The code I'm using is: public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigat...
asked by 07.08.2017 / 17:13
0
answers

Drag & Drop on JTree

I need to implement a Drag & Drop in a% of 3 levels so that when you click on a tree node and drag it to another tree, some operations are performed. The scheme is basically: Empreiteiro | Equipe |...
asked by 31.07.2017 / 15:29
0
answers

How to run a Java application with Play framework at the prompt?

I have a large system developed in Java that uses Play , but this system was developed in Linux , and now I need to run it in Windows . There is script to compile in Linux ( run.sh.template ). I n...
asked by 28.07.2017 / 14:37
2
answers

Compress image size [duplicate]

How to compress the size of an image so that it is smaller? public void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); t...
asked by 31.07.2017 / 13:08
0
answers

Why does the jboss server hang and not run with the standalone.bat command?

I'm trying to set up JBoss and have researched my problem in several places. But I still can not figure it out. I changed the default http port in jboss\standalone\configuration\standalone.xml as follows <socket-binding name="http"...
asked by 03.03.2017 / 13:54
1
answer

Consume webservice wsdl in java

I need to consume a webservice wsdl but I do not know how to load a method and pass the parameters inside that webservice so that it returns the desired value. This is the webservice: This XML file does not appear to have any style informa...
asked by 22.02.2017 / 13:10
2
answers

How to disable a button in java without removing its color

I have a button that when clicking it changes color, but if you click it again nothing should happen. But I still can not block this action. I tried this code: private void Button1_1ActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 22.02.2017 / 14:18
0
answers

Send JPG via JSON

I need to send this image to my api via post, but I do not know how to do that, thanks private void onCaptureImageResult(Intent data) { Bitmap thumbnail = (Bitmap) data.getExtras().get("data"); ByteArrayOutputStream bytes = new ByteArr...
asked by 19.05.2017 / 21:01