Questions tagged as 'java'

2
answers

Connect DCS-932L D-Link Camera with opencv

I'm trying to connect the OpenCV with a D-Link DCS-932L IP camera. IP, password, user and port are correct, but nothing works. I believe the error is in relation to the format of the URL. Below is the code. public static void main(String args[...
asked by 18.12.2014 / 18:32
2
answers

Problems with insert in an Android project in Java

I'm new as a Java programmer for Android, I'm creating an application that he signs up for an email, in the image below he will register the email below and above the user will log in. However when I try to register it generates an error in m...
asked by 16.12.2014 / 14:56
1
answer

Handle components in a container

I added a frame with multiple components to a container . In another class I add the container data to jPanel. In this class, is there any way I can access the components of this container ? Container ct3 = new Contai...
asked by 05.12.2014 / 13:55
1
answer

Error with ActionListener

import java.awt.Color; import java.awt.Container; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import javax.swing.BorderFactory; import ja...
asked by 03.12.2014 / 20:40
1
answer

Problem with data change class [closed]

I'm trying to change data from my DB via Java application, but when I execute the code below I get the error / p> jButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.Acti...
asked by 02.12.2014 / 19:43
1
answer

Facade generic is it possible?

Good afternoon I am studying for object-oriented account, and in the middle of studies appeared various patterns and with them a lot of confusion My question is, is it possible to have a generic FACADE. or anything to see what I'm talking abo...
asked by 16.02.2015 / 17:07
1
answer

Error trying to connect to a local MySQL database

I'm having trouble trying to access a local MySQL database, I'm following this tutorial . My file MysqlConnect.java : package br.com.alerts; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; i...
asked by 14.02.2015 / 23:42
1
answer

Json Correct format for typeahead?

When generating a JSON with the code below: JSONObject jsonObject = new JSONObject(); try { jsonObject.put("Nome", c.getNome_fantasia().trim()); jsonObject.put("Apelido", c.getNome_razao_social().trim()); jsonArray.put(jsonObject);...
asked by 20.07.2015 / 13:08
1
answer

Error closing a service in java on android

Hello! I'm having an error closing my app's service: 03-13 13:34:13.572: E/test(9039): Exception 03-13 13:34:13.582: E/AndroidRuntime(9039): FATAL EXCEPTION: main 03-13 13:34:13.582: E/AndroidRuntime(9039): Process: com.emersonbarcellos.motota...
asked by 13.03.2015 / 17:46
1
answer

Continue after finished execution ()

I have a class with the name Request_Login that validates the login data with the server and a LOGIN_RESPONSE string that stores the server response. When the data is submitted in the form and you press enter the followin...
asked by 20.11.2014 / 17:08