Questions tagged as 'java'

1
answer

Simulate the operation of a processor using java swing

I need to simulate the operation of a processor, using queue concepts. This processor will be color, where the user adds the color that wants to be processed and its execution time, this color needs to enter a queue, as the user adds more colors...
asked by 04.07.2016 / 14:07
1
answer

Erase rows in multiple tables

I'm trying to delete information from 2 tables simultaneously that are linked to each other but I'm not getting it, give me this error: Anybody help me please?     
asked by 30.06.2016 / 20:44
1
answer

How to update table with foreign key

I have table discipline and teacher table. The teacher contains discipline. How do I change the name of the course and automatically change the tb teachers? I'm kind of confused about using On update cascade and delete Casdade .. It deletes a...
asked by 05.07.2016 / 20:24
1
answer

Copy the date of a JTextfield to a JDateChooser

I currently mirror JDateChooser to JTextField , but now I need to mirror from JTextField to JDateChooser . How do I copy and convert a date from a text field to JDateChooser? I use this way to send to JTextField...
asked by 01.09.2017 / 17:49
2
answers

How to create multiple variables of the same type without repeating conditions?

import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Categoria c1 = new Categoria(); c1.categoria = "-Reprodução"; c1.nome = "Ahmed Shafik"; c1.ano = "2016"; c1.justific...
asked by 12.09.2017 / 00:25
1
answer

Query filter [closed]

modelo.setNumRows(0); Class.forName(Auxiliar.AcessoBanco.getDriver()); Connection con = DriverManager.getConnection(Auxiliar.AcessoBanco.getUrl(), Auxiliar.AcessoBanco.getUser(), Auxiliar.AcessoBanco.getPass()); String query1 = "Selec...
asked by 28.08.2017 / 17:19
1
answer

Go through directories with recursive in JAVA [closed]

I'm doing a job for college on how to go through directories with recursive in java and so far I have this code here: package Control; import java.awt.Desktop; import java.io.*; public class PercorreDir { private String pastas = "";...
asked by 03.12.2015 / 12:54
1
answer

isEmpty () method giving error in a while block [closed]

Hello. I am developing a game of board and in the method below I want to check if in the matrix of integers x some position has been set or is vasia. It is giving error in the line: while. public void verificarJogada(int posicao) { //iterad...
asked by 23.10.2015 / 16:38
1
answer

JTextField does not interpret \ n as line break

When printing client data in the JTextField, when \n is present it means a line break, but instead of moving to the next line each time it finds a \n , it simply ignores and continues to write forward. Follow the code below: li...
asked by 25.11.2015 / 18:47
2
answers

Error installing jdbc oracle in eclipse

I'm finding impediments to installing oracle jdbc. Screen Errormessage:  Errorreadingfile  C:\Users\alex.jose.silva.m2\repository\com\oracle\ojdbc14\10.2.0.3.0\ojdbc14-10.2.0.3.0.jar  C:\Users\alex.jose.silva.m2\repository\com\oracle\ojdbc...
asked by 16.01.2018 / 16:18