Questions tagged as 'java'

2
answers

Problem in calculating

I am doing an exercise that receives a value from the radius of the sphere, and then I do operations with formulas already proposed by the exercise. So far so good, at the time of running, it runs smoothly, the problem is that it does not ret...
asked by 11.03.2017 / 17:45
1
answer

Drawable Object Parameter Pass

I've created a method to encapsulate a notification message (% with%). An excerpt of the code is shown below: public void exibirMensagem(String titulo, String texto,Drawable icone) { Notification.Builder mensagem = new Notification.Builde...
asked by 17.03.2017 / 00:57
1
answer

.jar files do not open

Hello, I would like a help, I created a basic project in java but the .jar file does not open. I already have jdk installed    Microsoft Windows (version 10.0.14393) (c) 2016 Microsoft Corporation.   All rights reserved.       C: \ Users...
asked by 13.02.2017 / 00:50
2
answers

TextView - Leave only one word in bold

I have TextView which shows the following text on the screen: Like this: value: PROMOTION! How do I: value: PROMOTION! Do you have put bold in just one word of TextView ? That is, I have to do this without ha...
asked by 08.02.2017 / 20:59
1
answer

How to declare and instantiate a Double vector?

I'm trying to fill a vector of Double with 1's, but I'm not sure how to declare and instantiate the variable. double betaParcial[] = null; // 'linha' seria o tamanho do vetor, e pode assumir qualquer numero (ex.: 3 ou 4) for(int i=0 ; i<li...
asked by 01.10.2017 / 19:04
1
answer

Modifying the Size of an Array at Run Time

I'm doing a java application, and I used netbeans to build the screen. On this screen I have a button that generates random numbers and places them inside an array, but I can not change its size when it is running. What I did: I created a "ta...
asked by 03.10.2017 / 20:06
2
answers

Difficulty in reading XML in Java

I'm trying to learn, and I'm having a hard time reading an XML catching via WEB and turning it into an object. There is a ready code in which it makes the connection to the site, and another that a friend has shown me that I should pass the XML...
asked by 28.09.2017 / 20:17
1
answer

Position JCombobox on the screen

I made a combo box, in netbeans per command, and I can not change it's location (in the frame), the Bounts values change, but it does not move. I've used all kinds of commands (setBounds, setPoint, setLocation, etc.). public JComboBox<Strin...
asked by 21.07.2017 / 04:28
1
answer

How to break line automatically in a text component?

I would like you to break automatically when you reach the maximum number of letters / words on that line. When I put a pizza it works quietly: ButwhenIputmorethanonepizzathetextgetsbiggerthanthejLabelthereisnottoseeallthepizzasnorthetota...
asked by 15.07.2017 / 01:04
1
answer

Programming with android studio [closed]

I'm having an error in my project, the error that appears is as follows:    -> / Error: (23, 31) error: ';' expected / package com.example.lorenzo.pulo; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import and...
asked by 05.08.2017 / 20:11