Questions tagged as 'java'

1
answer

SwingDialog Fatal Error

I'm studying Swing with the Java Book Developer's Guide, and this code is not valid. import javax.swing.*; @SuppressWarnings("serial") public class Main extends JFrame{ public Main() { super(); //ajusta o titulo setBounds(...
asked by 01.11.2014 / 20:43
0
answers

Insert data into DB and then change tab

How can I tab forward after inserting data into my database? private void botaoAvancarTab1ActionPerformed(java.awt.event.ActionEvent evt) { String inserirArtigo = ""; String nome = t...
asked by 27.10.2014 / 15:11
0
answers

Adapt jComboBox Code with AutoComplete

Option 1: How can I adapt this code to my project? I created the class AutoCompletation and then in my constructor I put: AutoCompletion.enable(yourComboBox); I dragged my combobox into the design part and set it to 'editable'. When I...
asked by 18.11.2014 / 12:43
0
answers

String.format () with error

I need to format the following string with its parameter, but it is generating the following error:    Caused by: java.util.IllegalFormatConversionException:% d can not format   java.lang.String arguments private static final String URL_HO...
asked by 17.11.2014 / 20:52
0
answers

What is the best way to show external QuickSort simulation

I have to do an external quickSort simulator , showing for example the step by step of it. Displaying changes in variables lower limit, upper limit, main vector, area vector (would be the available memory space to sort the file), upper wri...
asked by 20.11.2014 / 15:11
0
answers

How to save the selected row of a JTable in DB?

I have a JTable that populates the database, where I can select multiple rows at the same time with the Boolean field that was added. I need to, when I click the "burn" button of my form , the lines that were selected in JTable...
asked by 22.12.2014 / 13:21
1
answer

How do I send data from a JTable to my DB?

I have a filled JTable and need to store its data in a table in my database. How do I do that? I only know the reverse path (fill a table from the DB) I'm using MySQL     
asked by 21.12.2014 / 19:37
1
answer

Dynamic notifications, via parameters, on Android

I want to create a dynamic notification on Android, where I can change the title and text that is displayed, via parameters . I'm currently doing this: Home.class @Override protected void onCreate(Bundle savedInstanceState) { su...
asked by 03.09.2014 / 17:23
2
answers

How to pass data from an SQLite table to several EditText fields

How do I get the data from a table and display it in a EditText ? I'm developing on Android. Here I make List of the data that I need: public List<ConfiguracoesSistema> listarConfiguracoes() { // List que recebe os da...
asked by 10.04.2014 / 20:02
1
answer

"No suitable driver found" in Java database connection

Well, I use eclipse and I'm trying to connect to a MySQL database with my project, my code, compared to other tutorials I found, is perfect, and that's it: package pack; import java.sql.*; import javax.swing.JOptionPane; public class Banco...
asked by 10.06.2014 / 01:49