Questions tagged as 'java'

1
answer

Failed to query javaFx through sql statements

Well, I have the problem that I want to get the records of a simple select * from table, but it tells me that it does not get any record The query code ConexionBD("eduware", "root", "", "3306"); Conexion(); this.cone...
asked by 08.10.2016 / 19:59
1
answer

Infix to postfix in Java [closed]

Only separate operands in one stack and operators in another stack, but do not go the final step to postfix ... help. public boolean lectura(){ a=JOptionPane.showInputDialog("Digite la expresion"); for(int i=0;i<a.length();i++){...
asked by 11.10.2016 / 01:10
2
answers

How to convert an image to an array of bytes in java?

I'm trying to convert an image to an array of bytes in java to save it in a database, I used several methods to perform the conversion, and you could say that if it does, but it always returns a small part, this one of the codes that I have occu...
asked by 07.10.2016 / 23:11
2
answers

Set several layouts in a Java window

I am trying to combine in the same window two JPannel , in one enter a GridLayout and in another to put a JButton that is not included in the Grid. The Grid view is displayed correctly but the JButton is not display...
asked by 08.10.2016 / 11:26
1
answer

Differences between "foo instanceof Type" and "foo.getClass () == Type.class / fuu.getClass ()"

When determining if an object belongs to a type, basically one of these two solutions is used: foo instanceof Tipo; O foo.getClass() == Tipo.class; The question is: What advantages and disadvantages does each one offer and in which cas...
asked by 30.11.2016 / 12:06
2
answers

Android: Bitmaps arrayList

As I generate a bitmap arraylist in my setImage setter, look for some examples but I only found the following example My code public class CheckIn { private int folio; private String customer; private String delivery; private ArrayList<B...
asked by 29.11.2016 / 14:39
1
answer

Error saving to a mySQL table with JPA

I have this class to save in a table with JPA: <línea 12>public class AgendaJPADAOImpl implements AgendaJPADAO, Serializable{ EntityManagerFactory emf= Persistence.createEntityManagerFactory("AgendaJPAPU"); EntityManager em= emf.createE...
asked by 17.10.2016 / 14:33
2
answers

Exceptions order to validate java date

I would like to validate a date with the format MM / DD / AA, through a program, to which this date is passed as a parameter, divide it through StringTokenizer into elements, and take into account the exceptions producing an error when it is a n...
asked by 02.10.2016 / 19:52
1
answer

Problem with SSL when connecting to MySQL

Every time I connect to the Database or try to execute a query, I get the following error in console: Sat Sep 10 17:38:48 BOT 2016 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQ...
asked by 10.09.2016 / 21:43
1
answer

How to fill a Java box combo from another class Using MySql

It turns out that I created a class with java interface in conjunction with NetBeans. Well I have a combo that filled it with the result of a query but when opening a new frame I insert a data to mysql and when it closes I want it to update auto...
asked by 14.09.2016 / 01:02