Questions tagged as 'java'

0
answers

show image having name in database in android

good, I would like to consult, since I did not use the method of saving the image in the db, I would like to show an image that I have stored in the directory of the same application, but I would need to take the name from the database, but look...
asked by 12.01.2018 / 13:12
1
answer

Attribute of an abstract class from another class within the same package

Good morning. I have a problem with that: they send me to make a package with several classes, the first class is "client" (with attributes idCliente and name), the second is "Account". The class "Account", is abstract where one of its attrib...
asked by 17.01.2018 / 21:14
0
answers

Using the same project I can create an FILE on my phone but on my tablet, what happens?

It's the same project, both have the permissions but on the tablet it does not let me create the file called MIARCHIVO File dbFile = context.getDatabasePath("BD_Ejemplo1.db"); String archivo = "/data/mipackage/databases/BD_Ejemplo1.d...
asked by 10.01.2018 / 18:19
1
answer

How can I pass the data from the file to int? [closed]

In a CSV file, the results of a race are stored in the format name: seconds. The program will convert this data into an ArrayList. Then the user will be asked how many data he wants to see (n) and the n participants will be listed with the best...
asked by 10.01.2018 / 17:45
2
answers

I can not export invoice to the txt file

Dear Friends: I'm trying to export my invoice to the txt file to be printed on the dot matrix printer from javaweb JSF (JavaFaces) and I get a message error: javax.faces.el.EvaluationException: net.sf.jasperreports.engine.JRRuntimeException: Cha...
asked by 11.01.2018 / 17:06
1
answer

Procedure stored in mysql

Hi guys, good morning again here with new questions. I'm doing a maintainer in java Desktop and in the search part I have a text field where I would enter the value to search, but I also have a radiobuttons that would allow me to choose the f...
asked by 11.01.2018 / 18:43
0
answers

File program

I have a problem with this code. package interfaz; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class PanelAcciones extends javax.swing.JPanel implements ActionListener { private InterfazEditor princi...
asked by 11.01.2018 / 18:51
1
answer

How to select a file with JFileChooser and rename it

I have a question about renaming a file by selecting JFileChoosr * , but I have found it very difficult to find an answer to my problem. JFileChooser selecto = (JFileChooser) e.getSource(); String comand = e.getActionCommand(); if (c...
asked by 09.01.2018 / 20:19
1
answer

How do I capture a variable of a href in thymeleaf Spring?

It turns out that when running my application, the spring boot does not capture the variable, and it shows me an error 404:    There was an unexpected error (type = Not Found, status = 404).   No message available Code: @RequestMappi...
asked by 09.01.2018 / 22:05
0
answers

Problem when redirecting CSS

I have a situation. I have a clients form in JSP with the name 'add_clients.jsp' that what it does is save data in the BD. Everything works very well, and when saving the data I want the page to redirect it to "table_clients.jsp" that contains t...
asked by 09.01.2018 / 16:14