Questions tagged as 'java'

1
answer

How to store an image in a Microsoft Access database and then read it from the database?

I am developing a project, which under the circumstances my only option is to use access, but I have encountered this problem. I do not know how to store an image and read it from an Access database. I have looked in forums that indicate that wi...
asked by 02.11.2018 / 23:17
1
answer

how to use JList and Un ArrayList java

I am trying to create a list of vehicles I made 4 classes the father class and the daughters that are aerial and maritime land. what I do is something like that public static ArrayList<Transportation> transportations = new ArrayList&l...
asked by 27.10.2018 / 01:55
1
answer

How to upload a temporary file to an ftp server?

I have the following situation, I want to upload a temporary file to an FTP server, I have the following code: public static void uploadFileFtp(String file,FTPClient client,String name) throws IOException { File files = File.createTemp...
asked by 27.10.2018 / 17:10
1
answer

Obtaining data from JCombobox

I'm generating a form where I need to get some value from a Jcombobox Currently, this is my code: private void llenarMatriz() { String cmb = "SELECT DISTINCT nombre_matriz FROM matriz ORDER BY nombre_matriz ASC"; try { Statem...
asked by 25.10.2018 / 14:11
1
answer

How to show a report of JasperReport (ireport) in a pdf JSP JAVA

You will see I have a problem, I must from a button in a jsp, send to call a report that I made in jasperreport above and be displayed in a pdf window to the user. When you click on the button, you must send a signal to the servlet and servle...
asked by 26.10.2018 / 07:13
2
answers

Call a callback to a fragment from an adapter

I hope you can help me, I have been looking for a solution for weeks and I only need this to finish a project. I want to call a method (UpdateItemcount) but I can not do it from my adapter. I have tried in several ways but it involves changing t...
asked by 30.10.2018 / 04:58
1
answer

How do I modify the titles of a jTable in Java runtime?

I have the following table: String x[][]={}; String columns[]= {"Programa","Estudiante","Modalidad"}; model = new DefaultTableModel(x,columns); table.setModel(model); And I would like to modify the titles of this table, whic...
asked by 12.10.2018 / 22:57
1
answer

Why does not the object appear button1 in the Frame?

package bienvenidos; import javax.swing.*; import java.awt.*; public class CapturaDatos { public static void main(String[] args) { PantallaCaptura pantalla1=new PantallaCaptura(); pantalla1.setDefaultCloseOpe...
asked by 13.10.2018 / 01:18
1
answer

JTabbedPane Tabs are not visible

I am creating a JTabbedPane with several JPanels, but at the time of starting the program the 4 tabs are not shown, and I can not understand the reason. I hope someone can give me a hand to understand why. package View; import java.awt.Bor...
asked by 15.10.2018 / 19:38
1
answer

How to change the name to a column of a jTable? [closed]

In what way could this be done in time of execution, once the names have been previously set?     
asked by 13.10.2018 / 00:03