Questions tagged as 'netbeans'

1
answer

Doubts about MySQL integration with Java

I am creating a system in NetBeans, using the Java language and the MySQL database. I wrote the following code to make the connection between the program and the database: public class Conexao { private static final String DRIVER="com.mysql.jd...
asked by 21.12.2016 / 13:56
1
answer

Netbeans project with git and Composer repository

I'm developing a PHP project that requires two separate libraries. I am required to use NETBEANS. To develop the three separately but at the same time and because the main project "MAIN PROJECT" needs the other two, I have idealized: All...
asked by 06.03.2015 / 16:55
1
answer

Project that imports other Netbeans projects

I have a project where all the Hibernate configuration part is. In the final project I will have a few more projects (Person Register for example) that will need the project that has Hibernate. How do I correctly set up Hibernate project impo...
asked by 10.01.2014 / 18:10
5
answers

Why does NetBeans warn you that you should not access global variables directly?

NetBeans suggests that we do not access the global variables of PHP type $_SERVER[''] directly, what is the suggestion in this case? It's usually done like this: <?php $ip = $_SERVER["REMOTE_ADDR"]; ?> What is the best...
asked by 23.12.2015 / 13:32
4
answers

Why an if can be redundant?

Using a method that returns a boolean the system would determine whether a number is positive or negative. So I did it this way: public boolean isPositive(float num) { boolean positive; if (num >= 0) { positive = tru...
asked by 19.04.2016 / 21:02
2
answers

What is the shortcut in NetBeans to close all "+" functions?

I remember I had this function in NetBeans. It is a shortcut that closes all (+) of the functions or divs .     
asked by 27.05.2017 / 12:07
2
answers

How to generate .jar executable program in NetBeans?

I made an application in Java and I liked it, now I need to get executable to show my colleagues. How do I get the executable?     
asked by 07.08.2014 / 21:14
2
answers

What is called a replaceable method in the constructor?

In a class that extends JFrame , I have some calls in the constructor, as can be seen below: public ListaDeOficiosUI() { try { this.oficioController = new OficioController(); this.initComponents();...
asked by 22.02.2016 / 11:57
1
answer

Comparison between IDEs for java [closed]

In the next semester I will have to choose between two IDEs: NetBeans and Eclipse. I will need to develop desktop applications, and I have questions about: Graphical interface tools Hardware Requirements for Considerable Performance...
asked by 16.12.2014 / 18:29
1
answer

netbeans change the jdk from java

I've updated my java, and removed the previous version, now on boot netbeans gets a message that did not find version 1.7 and asks if I want to use the default version. Does anyone know where I change this setting so I will not be seeing thi...
asked by 18.09.2015 / 12:39