Questions tagged as 'java'

1
answer

Correct way to update a property of an Object

I created an update method, however I'm having to create a variable to be able to update my property, which although working, I think this would not be the correct way to treat an object. I have this property in the FunctionalModel object bel...
asked by 06.04.2017 / 18:01
1
answer

Color jTable lines ready [closed]

I have a code and need to make some improvements, but I can not insert them correctly, I'm a beginner and I have some difficulties. The software has: a class BeansClient with get and set; a class BeansTabela; AbstractTableModel construc...
asked by 23.02.2017 / 13:30
1
answer

JavaFX 8: Updating the TableView after the window closes

I have a classifications and a classification management screen, from a library system. After registering a new classification, I would like the TableView of classifications in the management screen to be updated showing the new record. I redo t...
asked by 23.02.2017 / 04:08
1
answer

How to put a color on the tr of a dynamically selected Radio

Is it possible for the line color to change after the user selects a radio from the list, taking into account that I am submitting the page? the problem is that I am not able to do it as you can see below my Table pulls the database data dynamic...
asked by 16.02.2017 / 11:43
1
answer

object references an unsaved transient instance - save the transient instance before flushing

I'm having the following problem I have three tables one with the name User with the following properties Id, User, UserName and Password Person with the following Id, Name Employee with the following properties Id, Job, User_ID,...
asked by 17.02.2017 / 14:46
1
answer

How do I identify which current fragment when using the android back button?

Good morning guys, how are you? I have the following problem: I enter the initial fragment of the app and on this screen I have a PagerView, when I change the fragment and I come back using the BACK BUTTON for the initial fragment this image...
asked by 16.02.2017 / 12:04
1
answer

How to return request status code Java RestEasy

It is very intuitive to do a return of the API with an object or something, but would like to return an object along with the status code of the request. @Override @GET @Path("/{num}/{cod}") public Foo getFoo(@PathParam("num") long numFoo, @Pa...
asked by 21.02.2017 / 13:47
1
answer

What is the difference between domain logic and application logic?

How do I know if I should put the method in the class itself or in the BO of the class? When to know the difference of domain logic and application logic? Note: I was left with the doubt after read this article     
asked by 27.03.2017 / 03:29
1
answer

Error Exception in thread "main" in my Array

People, help me, I can not find where the error is in my code. I know this error refers to not having the position in the array to store but I do not know where to fix it. package br.com.fiap.exercicios.lista2.exercicio2; import java.util.Scan...
asked by 26.03.2017 / 22:10
1
answer

Comparison of one image with others (analyze whether the chosen image is the same as the others already pre-defined or not)

I'm trying to make a Java code that compares an input image with other n already defined images in code. I developed (with a lot of) a similar code, which compared two images only, the problem is to magnify it. To take one image only and to comp...
asked by 26.03.2017 / 17:58