Questions tagged as 'java'

1
answer

How to create a dynamic JTable?

I have a JTable in my form, I wanted the size (number of rows and columns) of the table to be according to the number that the user type, how to do in java?     
asked by 04.06.2016 / 02:36
0
answers

Socket Connections

I'm trying to do a project in which I do the transfer of a file. I am having problem at the time the server accepts the client connection. As I'm trying to do in different packages the class Talya initiates the connection of the server in line 2...
asked by 20.11.2017 / 18:52
0
answers

How to format date in UTC format for yyyy-mm-dd [duplicate]

I'm working with the XML of an NF-e where the date fields are in UTC format (YYYY-MM-DDThh: mm: ssTZD) and need to insert them into the database in the format yyyy-mm-dd. p> I'm using SimpleDateFormat to try to do the conversion, but I get a...
asked by 20.11.2017 / 14:29
2
answers

Update fields of a class with sequential names

How to update the background color of 15 JTextField during a loop? For example, I have the following JTextField : txtEsp1 txtEsp2 txtEsp3 ... And I want to create a loop, to set the background of the 15 as white: for(int i=...
asked by 29.11.2017 / 14:15
1
answer

Function execution sequence

I have a question about the execution sequence of functions. For example, in the code below, because it prints y = 2.0 and not y = 4.0 and because it prints w = 0.5 and not w = 2.2. The y = 2.0 understand that it looks for the value that are clo...
asked by 20.11.2017 / 02:21
0
answers

Morse Translator for Portuguese and vice versa

Hi I'm trying to do a Morse to PT translator and vice versa. I want the program to know if the first character of my input is - or. it automatically assumes that I want to translate from Morse to PT and does the translation soon. If the first...
asked by 19.11.2017 / 17:48
0
answers

JSONObject does not add ArrayList

I use the code below to populate my arrays quietly, but when searching for a topic here, I realized that for my problem I could use a generic class. The problem is that the JSONObject is not populating with the past array. class GenProjeto {...
asked by 20.11.2017 / 02:45
1
answer

SSLC0008E: Unable to initialize SSL connection error Websphere 8

I have the following error when uploading an application using WAS 8.0 and Eclipse Mars, I searched a number of things on the internet, but I did not find anything that would help, I even tried changing the JDK version Or things like: / p>...
asked by 17.11.2017 / 14:44
0
answers

How to fix it in my code: Null Pointer Exception

My database has those responsible for "Supervisor" and "Manager" values. However, I make a search to get the Employees responsible and zero return. See my getResponsible method in my class " EmployeeDA.java ": public List<Empregado> getR...
asked by 01.12.2017 / 01:07
0
answers

Chat between two different computers

I'm new to this Socket thing and I'm having trouble connecting two computers that are on the same network. When I run the client and the server on the same machine, it works ... but when I do this on different machines, the server does not ident...
asked by 16.11.2017 / 14:37