Questions tagged as 'java'

1
answer

HikariCP - Unable to get driver for JDBC URL

I'm trying to implement HikariCP to care for connections in a web project. Steps followed: I created a Dynamic Web Project I've added the required .jars into WEB-INF / lib ( HikariCP-2.3.5.jar / sfl4j-api.1.7.10.jar / sfl4j...
asked by 24.03.2015 / 19:54
2
answers

StackOverflowError when calling a class

public class MainActivity extends ActionBarActivity{ Conexao c = new Conexao(); public void tela(){ c.CriaBanco(); } } public class Conexao extends MainActivity{ String NomeBanco = "Cadastro"; SQLiteDatabase BancoDados = null; pu...
asked by 03.07.2015 / 16:35
2
answers

Zoom button and Street View do not appear on Modal Boostrap

I'm loading Google Maps v3 into a modal Boostrap Framework. The problem is that I can not see the icons / zoom button and Street View, they appear distorted in the blue square of the image. The right one was to appear on the red square as standa...
asked by 10.03.2015 / 16:54
2
answers

How do I delete a word at a time?

I'm using this method to delete the last character entered in a TextView: texto = txtTexto.getText().toString(); int length = texto.length(); txtTexto.setText(texto.substring(0, length - 1));     
asked by 08.03.2015 / 14:15
2
answers

Why can not I get into the else if of this code

import java.util.ArrayList; import java.util.Iterator; import java.util.Scanner; public class ControladorVeiculo { public static void main(String[] args) { ArrayList <Veiculo> veiculos = new ArrayList<>();...
asked by 13.03.2015 / 00:11
2
answers

How to open pdf on Android?

In my application there is a button where when clicked, it will open a arquivo pdf, but could not get this file from the internet, would have to come along with the application, I am using the following code: Intent intent = new Intent(I...
asked by 05.06.2015 / 21:15
1
answer

How to update a JLabel periodically?

I'd like to know how to periodically update a Jlabel , since this label depends on another method. In this case it would be lblNewLabel_1 . public class MenuGFinancas extends JFrame { private JPanel contentPane1; private S...
asked by 04.06.2015 / 20:59
2
answers

JList - does not update when logging in again

private DefaultListModel model = new DefaultListModel<>(); //modelo da lista de ficheiros private JList listaFicheiros = new JList<>(model); new1.addActionListener(new ActionListener(){ @Override publi...
asked by 12.10.2016 / 16:12
2
answers

Using the database connection class

It seems like a silly question but come on, I have some tables in my database and I need to query them, but they are not @Entity, I did not create the sources, the only way to do the queries would be with the Connection class. ? Would it be a go...
asked by 02.03.2015 / 18:26
1
answer

JSP: Item page not found

I'm scheduling a page to tell you that the searched item was not found. I wanted to know what I'm doing wrong and what would be a solution. <c:forEach items="${proposta}" var="proposta"> <div> <img src="....
asked by 28.04.2015 / 18:53