Questions tagged as 'netbeans'

3
answers

Does not respond ActionListener CommandButton Web App

I have a web application made in Netbeans 8.1 , Java 8 and Maven First of all in my class Managed Bean Controller.java place the label @ViewScope . When I compiled and deployed the application I got the error...
asked by 28.01.2016 / 01:52
2
answers

Why are CSS styles not updated?

It happens to me sometimes that I have to eliminate the datos de navegación , cookies , caché , and everything so that I just update the styles that you modify in CSS , which are in another folder as you already know. I u...
asked by 09.07.2018 / 10:44
2
answers

Back invisible a JPanel and make visible another

I have a problem making a panel visible after rendering another panel invisible. This is my JFrame, which contains a JPanel which in turn contains these 3 JButton as you can see: So that you have a clearer idea of wh...
asked by 12.04.2017 / 04:46
1
answer

How to create a keyboard listener just for the ENTER key? [closed]

I'm working with a user registration window, and at the end I have the register button, but I want the user to press the enter key, do the same as if I clicked the register button, how can I do that? I have seen that the keyboard listeners work...
asked by 12.08.2018 / 03:58
1
answer

Problem with Java and NetBeans

I have a MacBook Pro. The case that I installed NetBeans latest version and Java JDK, finally I installed the necessary tools. The problem is that, when I compile, I never open the terminal or the project ... if I make a print "hello" shows i...
asked by 02.05.2018 / 16:45
1
answer

ArrayIndexOutOfBounds Java error handling an array

I do not know how to solve this error:    error: Exception in thread "main"   java.lang.ArrayIndexOutOfBoundsException: 0 It takes me to the next class, in the setFilas function, that I use to insert a row into a matrix. package...
asked by 29.03.2018 / 17:00
1
answer

Regarding the sentence "compareTo"

I have a question about the compareTo statement. If I have: if(x.compareTo(y)==0) I understand that I am asking if the value of x is equal to and . But if I want to ask if they are different? Should I place a denial forward? if(!(...
asked by 12.06.2018 / 20:06
1
answer

Error initializing a String Array

I am creating a program that lists the contents of a file, the problem that when I initialize my String array I have an error that is not recognized. This is the code: File origen = new File("TEXTO.TXT"); InputStream in = new Fil...
asked by 11.01.2018 / 19:51
1
answer

Triangle in java

I am new to this java theme, and I want to make the following figure. It should come out like this: *** ** * I used the following code: public class MATRIZ { public static void main(String[] args) { for(int j=0; j<3; j+...
asked by 12.11.2017 / 04:18
1
answer

file properties is in the main project folder but I want it in the .jar folder

I added a properties file to my project, this file is saved in the main folder of the project while the jar is saved in the dist folder. Every time I want to test the jar I have to move the properties file to its folder and every time I compile...
asked by 23.10.2017 / 18:05