Questions tagged as 'java'

0
answers

Error Injecting DAO EJB

I have an EJB project built with JDK 7. Currently in production we use GlassFish-3.1 as an application server and we are trying to migrate the same to Payara-4.1. We were able to upload the application after several attempts, configurations and...
asked by 30.11.2017 / 20:30
0
answers

How to return Json text from BD to ArrayList in Java

I'm having trouble converting a set of Json text from the database to a set of ArrayList text in Java. Here is the code below: Model.java public class Sala { private String professor; private ArrayList<Aluno> alunos; /...
asked by 30.11.2017 / 22:41
0
answers

NETBEANS - JAVA - DERBY - Error retrieving byte for ImageIcon

Save everything good? I stored a BLOB file and I'm looking to recover it, it's a JPG. Below is the ResultSet of it: byte[] bin = null; // (2) ResultSet rs; try { rs = produtoCont...
asked by 27.11.2017 / 01:51
0
answers

Save 2 templates in the same firebase id

I have 2 models, the delivery and the vehicle, I need to save the data of the two models in the same%% of the database, I did the following, I used the vehicle. id but did not save: private void cadastrarEntregador() { autenticacao...
asked by 09.12.2017 / 23:01
1
answer

How to save numeric type in Mysql

Hello, I am using to save the price of a product in MYSQL numeric type (9,2) but on my system I am using Double and when printing it appears $ 2.2 instead of $ 2.20 what kind of data could use it to get all the decimal places? // my Product cl...
asked by 14.11.2017 / 00:40
0
answers

I can not extend a JFrame class in Eclipse

I'm trying to extend a JFrame class to create a window, however in eclipse the following error appears: configure build path -Open the Java build path property page of project "Chat" The code would be this: import javax.swing.*; p...
asked by 15.11.2017 / 16:54
0
answers

Error - IP camera connection by ONVIF

I have a generic IP camera that uses the ONVIF "protocol". The connection to it via YYP2P (android app) is working, however I can not connect to the onvif-java-lib library. Code I'm using: import java.net.ConnectException; import java.text.Sim...
asked by 15.11.2017 / 18:38
2
answers

JLabel does not receive new text

This code was meant to be when it clicked on the button it became invisible and lblVira became a number between 0 and 10, it gives no error message and compiles only lblVira does not "catch" the new text (I'm new to java). privat...
asked by 12.11.2017 / 02:15
0
answers

How to add an ExpandableListView in the Android Drawer Navigation menu

I created this Navigation Drawer that is already in the Android Studio itself: However,IwantedtoknowhowIcanmakethislistexpandable.Iwantbysubitemsforeachiteminthelist.I'veseenthispost: Navigation Menu Drawer with ExpandableListView but it cr...
asked by 12.11.2017 / 02:17
0
answers

How to open a screen with navigation drawer from a button?

I'm developing my TCC and I do not have much knowledge on Android yet, but following some tutorials I was able to put together a basic app. But I can not and I have no idea how to open a screen with navigatiodrawer after clicking the "Login" but...
asked by 12.11.2017 / 20:02