Questions tagged as 'java'

1
answer

Help with ClassCastException with reflection in hibernate

Someone can support me with this exception: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType It happens when I run the following code in a DAO to use hibernate. The problem is in the get...
asked by 24.11.2016 / 19:21
0
answers

table in html that does not show all the results of a select

Good friends I have a web application with a table to which at the moment of pressing the "search" button taking as value the one chosen in the default combobox '0' .. it must show me all the existing stores in the BD, probe in toadOracle and it...
asked by 17.11.2016 / 14:22
2
answers

Add objects of different classes to an ArrayList in Java

I have a problem adding objects to an arraylist. I have the following code line: List data = new ArrayList (); to this list I want to approve the data of different classes, to later pass this list as a datasource to ireport. Con...
asked by 16.11.2016 / 17:25
1
answer

Get text from a JCheckBox array by adding the ChangeListener to it within a for

my problem is that inside the for where I start my JChekBox array I add the ChangeListener step, but inside this I do not know how to get the JChexBox index to get the text that is in it. example: for(int x = 0; x < cbConvertirDe.length...
asked by 19.11.2016 / 04:51
1
answer

JButton can not be resolved to a type

This JFrame has a JTextField that once entered and clicking "Accept" shows a table with the entered data. The problem is that I get this error in getParent ():    The method getParent () is undefined for the type new ActionListe...
asked by 21.11.2016 / 08:18
0
answers

How to edit a CRT MasterTable in Netbeans?

I have basic knowledge, not to say minimum, of programming. I need to create a CRUD model for school work. I did it through this video link . First create my database in Java DB , then create a MasterTable (Swing GUI> Master / Detail Sample F...
asked by 28.11.2016 / 23:27
1
answer

Prevent JDateChooser from recalculating the date

The JDateChooser class when it receives an erroneous date tries to correct it, how can I avoid this behavior? JDateChooser jDateChooserFecha=new JDateChooser(); SimpleDateFormat formatoFecha = new SimpleDateFormat("dd/MM/yyyy"); jDateChoos...
asked by 28.11.2016 / 16:15
1
answer

Export Excel does not write all the data

I have a process that exports me the information of a Resultset to a normal excel file that works well with 500 to 600 records, but if they go beyond that number of records, I do not write all the information, that is, it omits a lot of data....
asked by 29.11.2016 / 00:45
2
answers

Do Merge of data to EXCEL Documents?

Good day, it happens that I need to make a functionality that modifies some fields that are defined in an excel document in JAVA just as I am doing it at the moment with word documents (.docx), the truth is that there is an API but I have no ide...
asked by 04.11.2016 / 20:30
1
answer

Github + Netbeans + SourceTree ERROR in Push

Does not allow me to push someone could explain why? After committing and doing pull     
asked by 05.11.2016 / 02:05