Questions tagged as 'java'

0
answers

Authentication automatically using JCIFS in JAVA

I am building a solution in Java where the goal is to be able to have users logged in to a Windows domain automatically authenticate with their Windows credentials when starting a web application. For this I am using the JCIFS library. But when...
asked by 22.01.2015 / 15:15
0
answers

Is it possible to select a video card?

I want to create a small web program where I need to select a video card. It is software for displaying music on a projector. As the PC will have two cards one will only be to show on the projector. Now that they are: The system must...
asked by 23.01.2015 / 01:29
1
answer

How to go through Hashmap with subkeys? [duplicate]

How to traverse a HashMap that has another HashMap ? for (Map.Entry<Date,HashMap<String, Integer>> entrada : m.entrySet()) { // .... }     
asked by 26.01.2015 / 13:21
1
answer

Why is the Activity instantiated twice?

I'm implementing facebook's sdk to sign in to my app. I have two Activities that I call Login and Home. When I click the login button, login is done perfectly and Activity Home is instantiated as soon as the onSessionStateChange method is called...
asked by 02.02.2014 / 23:46
1
answer

Print content of an object belonging to a TreeSet (Collection) [duplicate]

I have a TreeSet that will store several objects of a "Products" class, this class has 3 attributes:    int codProduct;        String descProduct;        float precoProduct; After storing some "Product" objects in this TreeSet, I ne...
asked by 21.11.2018 / 12:54
1
answer

How to change the style of a group of vertices in JGRAPHX?

I'm working on a UML project and using JGRAPHX, or mxGraph as they prefer. In case, when I have a group of vertices, a dotted line is added to mark that vertex is a group. How can I change his style like the figures below? When not a group of...
asked by 19.02.2014 / 10:55
1
answer

How to create objects from a text file in Java?

Hello. I have a class in my project (Person) that contains attributes (for example, name, age, gender, etc) and I have an array of these objects (Person). I also have a text file and inside it is typed several characteristics in a format Name #...
asked by 18.09.2014 / 22:27
0
answers

Center canvas inside another canvas in JavaFX

I managed to do so, public class Graficos extends StackPane { private Canvas imagem; public void criarAreaDeDesenho(){ //foi criado dentro de uma StackPane GridPane grid = new GridPane(); grid.setPadding(new Ins...
asked by 25.05.2014 / 15:06
2
answers

Controller SpringMVC does not redirect to another controller

No Controller LoginController.java @Controller @RequestMapping("/login") public class LoginController { @Autowired private UsuarioRepositorio usuarioRepositorio; @RequestMapping(method = RequestMethod.POST) public String autenticar(@Valid...
asked by 17.08.2018 / 20:15
1
answer

How to render name or company name according to type

I am trying to render the contents of a column of a table with name or Social reason depending on type <f:facet name="header"> #{contato.tipoCadastro.codigo eq '1' ? 'Nome' : 'Razão Social/Nome Fantasia'}</f:facet> The code is o...
asked by 19.02.2018 / 13:29