Questions tagged as 'java'

1
answer

WebView Scroll does not appear

I created my first application on the android being that it was (WebView) but when I enter the application, my site is fixed inside, without scroll. My code is: package com.sirseni.simpleandroidwebviewexample; import android.app.Activity;...
asked by 05.06.2017 / 15:12
1
answer

How to access an attribute of an object within an object stack

I have several objects of class Vehicle with plate, model and yearFabri as attributes, inside a stack that I created (Stack.java). I need to apply a method in the Stack class, which removes objects from the stack until I find a Vehicle that has...
asked by 04.06.2017 / 20:06
1
answer

java.lang.NullPointerException error using Scanner

In the following code generates the following error: Exception in thread "main" java.lang.NullPointerException at pkgClientesPedidosDiogoVinicius.TesteClientesPedidos.cadastrarGerente(TesteClientesPedidos.java:98) >>>> g1.se...
asked by 01.06.2017 / 03:05
1
answer

Ucanaccess problem in Select with Between Dates

I'm having a problem while performing a query having as condition a period of two dates, this query in MS Access works perfectly however via code with the ucanaccess library I get the 'Unknow Token' error, I believe the problem is in the charact...
asked by 01.06.2017 / 15:08
1
answer

Hibernate gives insert but does not insert data into table

I have a visitor record in which I fill in the data (title and date), and hibernate executes when requesting "save" on the form. Here is the log when I ask to save in bank (MySql). 12:37:27.752 DEBUG org.hibernate.validator.internal.metadat...
asked by 15.06.2017 / 17:42
0
answers

Problem generating modal window layout with form using thymeleaf

Good afternoon. I'm getting the bootstrap modal windows and loading the data into the form, but the layout of the form is getting all messed up. I'll leave two photos to show what's happening. How should I stay HowdoesitgetwhenThymeleafgen...
asked by 16.06.2017 / 19:53
0
answers

Use same component in JTabbedPane

Before describing the problem itself, I will explain what I am trying to do. I'm going to need to use some buttons that will basically do the same thing, except that the actions they're going to apply change from one (JTabbedPane) to a...
asked by 16.06.2017 / 21:57
1
answer

problem to reset CountDownTimer

I'm setting up a project to learn and I can not find a solution for a timer, let's say time has already been selected 10 minutes and the user wants to change to 5 minutes by clicking 5 min should cancel the old time and start the new but I can n...
asked by 16.06.2017 / 20:36
1
answer

Display Java Database Values

I'm a beginner in Java and I'm doing a mini-RPG-style program for database testing, and I want to display the data contained in the DB using a ArrayList , however the output is always like this:    [rpg.Personagem@1de0aca6, rpg.Personag...
asked by 14.06.2017 / 06:07
0
answers

How do I use FileProvider and Bitmap together?

I'm having trouble sending a photo to the server, specifically in the snippet: "bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);" . Always when taking the photo it presents an error in this line. Previously, instead of "FilePro...
asked by 14.06.2017 / 08:05