Questions tagged as 'java'

1
answer

Attempting to create two-dimensional arrays as objects

I'm trying to create a simple program that allows me to create 2d arrays with different objects. My thought process was that I should be able to create objects with arguments (as declared at the beginning of the class and referred to in the co...
asked by 12.08.2017 / 18:30
1
answer

Bat to terminate process and close app on desktop

In the company I work with we have an application called Socket developed in Java to run files in the browser, but I need a bat to kill the process and close the application icon and start it again, but it will not accept 2 socket open, I have m...
asked by 31.01.2017 / 14:08
1
answer

BooleanBinding of multiple properties

I made the following structure so that when you make one of the components invisible, the others follow the same configuration. A.visibleProperty().bindBidirectional(B.visibleProperty()); A.visibleProperty().bindBidirectional(C.visiblePropert...
asked by 12.02.2017 / 21:06
1
answer

How to integrate spring batch + spring boot + quartz

Good morning. Currently in my project I am using spring boot and spring batch. Creating the batch was easy, even running it when starting the application with tombe embebed from the spring boot however, I need to run this batch from time to time...
asked by 27.01.2017 / 14:21
1
answer

Problem in persistence of data using JPA

I have a class that has two attributes, start time and end time, both of type Date. @Temporal(TemporalType.TIME) private Date horarioInicio; @Temporal(TemporalType.TIME) private Date horarioFinal; In the view layer the Spring Data Binding f...
asked by 10.06.2017 / 20:30
1
answer

Generic Dialogue in thymeleaf

Good evening, friends, Has anyone tried or ever done a generic dialogue on thymeleaf? What I want is: Instead of writing code to confirm the deletion of a data on the screen is something simple, I would like to make a generic, where I w...
asked by 02.04.2017 / 01:54
1
answer

PrintStream does not record accents

could you help me out on a question? My code is not passing accent to the text file, even passing the encoding. (I'm reading it in notepad) Scanner in = new Scanner(System.in); private String texto; public void escrever(){ try{...
asked by 24.02.2017 / 21:56
2
answers

Invert values from one vector to another vector

I am in the second semester of college, we are learning vector, and I am very lost in the list of exercises. An exercise asks the user to type 5 elements for a vector, and then I have to get these elements, send them to another vector, only w...
asked by 18.02.2017 / 13:01
1
answer

How to change Graphics2d objects out paintComponent

I would like to know how to change the color of a drawRectangle() of Graphics2d of java, outside the @Override paintComponent() method. It turns out that this change should be temporary, only when the mouse pointer passes...
asked by 01.03.2017 / 15:56
6
answers

Regular Expressions with Java Patterns

I need to do a college exercise that is as follows: Validate with regular expressions any word that contains exactly two 'a' characters and two 'b' characters or more. I made the following expression in class Pattern : Pattern pattern =...
asked by 23.02.2017 / 03:01