Questions tagged as 'java'

1
answer

Modal in MDI and its JInternalFrame Java

Modal in MDI and its JInternalFrame Java Hi, I need to know how to handle modal in a Java MDI, what I would like to do is to handle the window blocking in the following way:    Case 1: JInternalFrame - > JInternalFrame    Case 2:...
asked by 22.11.2017 / 21:52
0
answers

Treatment of buttons in JFrame

I want to generate buttons in a frame, and that when I press a key, a button changes color. For example: if I keep holding the "F" key, a button should light up in red, if I press the "L" key once, it should light up in yellow. My idea is to...
asked by 12.11.2017 / 23:59
1
answer

How do I make the button matrix centered?

Good morning, I'm creating a program and I need the matrix to be centered. In what way can I achieve it? This is my code to make the button array: private JPanel getPanel(){ JButton bMatriz[][] = new JButton[5][5]; JPanel panel= n...
asked by 15.11.2017 / 04:48
2
answers

error when using app: srcCompat

I have a problem using srcCompat in the following code <android.support.design.widget.FloatingActionButton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" andro...
asked by 12.11.2017 / 19:51
0
answers

Connect sql server windows authentication

I have an instance of sql server, which can be connected either by windows authentication or by sql auhthentication: public static void main(String[] args) { Connection conn = null; String driver = "com.microsoft.sqlserver.jdbc.SQLSe...
asked by 15.11.2017 / 09:39
1
answer

Problems with entity classes in netbeans

I'm doing a job with JSf in netbeans; I brought my work project and I tried to edit it in linux Netbeans. The problem is that I eliminate an entity class for a table in my database which is related to other entities ... Despite having made a ref...
asked by 05.11.2017 / 17:54
1
answer

Why do you only call a default method on the page ??? JSF

Hi, I'm working on a project using Jsf. The problem is that when calling a method of a Bean for example #{pruebaBean.test()} only returns the result correctly on the first page that executes the project, that is, the default page set i...
asked by 07.11.2017 / 15:23
1
answer

Error with RealmSearchView with my Realm Data Base

I want to implement a SearchView in realm and I found RealmSearchView in link but I get an error in the adapter, these are the errors at com.condado.yeikel.mediosbasicos.Adapters.ExpedienteSearchViewAdapter$ExpedienteItemView.bind(Expediente...
asked by 07.11.2017 / 15:19
0
answers

java.lang.NoClassDefFoundError on NetBeans

I was using NetBeans when I accidentally clicked on a hammer icon with a broom, the equivalent of pressing Mayus + F11 (clean and build project) is what it puts me. When doing it when I try to execute the program I get the following error:...
asked by 07.11.2017 / 22:42
1
answer

I have a problem with this exercise in java

The problem is the following:  Create a class called MyMethods, which must contain 2 methods, one of type void and another that returns value, the latter must have a parameter. The first method should print the message "Hello Happy day" and the...
asked by 07.11.2017 / 20:01