Questions tagged as 'java'

1
answer

Help to Compare ID with String

Well, I'm developing a simple application that when started starts displaying random images and text on the screen just for learning and what I have so far is this: package br.com.appteste; import java.util.Random; import java.util.Timer; imp...
asked by 24.04.2015 / 00:55
1
answer

Inheritance with jpa

Hello, I have a class called Usuario which is abstract and I have the class UsuarioComum and Administrador that inherit from Usuario , I am using JPA annotations to generate the automatic database, I want it to generate...
asked by 07.12.2014 / 02:19
1
answer

Communication with the Google Calendar API using REST

I'm using Scribe to authenticate with API of Google Calendar . Authentication with Google is done successfully returning accessToken with no problems. When I try to add a CalendarList , through the following code...
asked by 05.12.2014 / 23:46
1
answer

Handle json object

I have the following json : { "home":[ { "id":"1", "menu":"1", "title":"Titulo 1", "image":"image01.jpg", "url":"http:\/\/www.exemplo.pt\/images\/image01.jpg" }, {...
asked by 25.11.2014 / 17:06
1
answer

Adapt ToolTip code to a jTextField already created

I found this code that works well for the button: public class CustomJToolTipTest { private JFrame frame; public CustomJToolTipTest() { initComponents(); } public static void main(String[] args) { SwingUtilit...
asked by 13.11.2014 / 15:21
2
answers

Block the function btprevious2.setOnTouchListener

I have an application where I use the btprevious2.setOnTouchListener method to perform quick page switching. btprevious2.setOnTouchListener(new View.OnTouchListener() { private Handler handler; @Override...
asked by 13.11.2014 / 12:24
1
answer

Catching multiple boolean values and playing within a variable

I needed to get all the answers that are inside boolean respostas1 and play inside another variable so I can send it to the MySQL database. The way I did it, it turned me all false. For example, I have 4 questions, it should bring m...
asked by 10.11.2014 / 16:33
1
answer

(Eclipse) JBoss never starts

I'm having trouble trying to make JBoss run on the Eclipse self. I installed JBossASTools, downloaded the latest version of JBoss, and did the default installation procedure for new server in Eclipse (with the configuration file standalone-fu...
asked by 01.05.2015 / 03:08
1
answer

How to copy a file inside the jar to a folder outside it?

I put images inside a package in the project. I need at run time to display this image in an external program (in the notify-send case of linux), this program needs the exact path of the image, so I had the idea of copying the image into the tem...
asked by 03.05.2015 / 21:05
1
answer

Problem returning value of a method

I'm studying the book of Deitel Java how to program and I came across an exercise that asks to make a salary adjustment in 10%, my question is in the method of readjustment, my goal is to show on the console screen the salary of the two before t...
asked by 29.04.2015 / 15:47