Questions tagged as 'java'

2
answers

Converter and Validator with CDI injection

Can anyone inject CDI or EJB in Converter or Validator in JSF 2.2? It was said that from 2.2 it would be possible but I'm not getting it. I've tried @EJB UserService userService and also @Inject UserService userService and both di...
asked by 30.06.2015 / 15:53
1
answer

Search in files in a directory

I have a small application that needs a search engine that can list files that contain a user-entered term. The first feature of the program, which is responsible for reporting how many times a string appears within a .txt file, is alr...
asked by 19.06.2015 / 14:59
1
answer

How do I rewind the file pointer correctly in Java?

In reality the problem is quite complex, but I will try to give a notion that I think will be understandable. I have a method in an application that initializes objects to I / O in accordance with a "global context" (in fact this is a concept...
asked by 14.06.2014 / 08:05
1
answer

Matrix in Forms

I'm having trouble creating an array within a JPanel in NetBeans, I've tried customizing the code by putting the code inside the NetBeans customization: jPanel1.setLayout(new GridLayout(15,15)); JLabel[][] grid =...
asked by 11.11.2014 / 17:47
2
answers

How to do collision in game with Java 2D platform?

I'm trying for several days to do a collision method that returns me or tell me the sides of a rectangle that are being bumped. I have already used the intersects method but this only returns me that this is having the collision in general, I...
asked by 11.06.2014 / 18:36
1
answer

Vestibular system using JAVA

I have a college job to do, which is to create a college entrance system. The work is on the link, click here , and I am in doubt on the following topic:    The program should read from the file "vestibular.txt" the student data,   check whi...
asked by 11.11.2014 / 00:05
1
answer

How to disable Java automatic updating?

How to disable Java 7 64-bit upgrade? I entered the Java control panel and the update tab does not appear. Note: I can not update my version.     
asked by 28.11.2014 / 12:38
1
answer

Tracert or Traceroute in Java, without calling the OS

I'm developing a web application that will test the servers and bring the result equal to a tracert of Windows or traceroute of Linux. I'm developing in Java and using the above commands as follows: I identify the server and cal...
asked by 24.11.2014 / 19:55
1
answer

Capturing username entered on the machine

I need to add in my program a method where it will capture the logged-in user of the machine and then display it to the client. The client will run the program, and then it will show you information about your computer that should include the...
asked by 21.11.2014 / 04:53
1
answer

Restricting access to data with REST

I would like to know if it is possible to restrict access to the data of my REST application. For example, I have the xml / json that it returns in link >, where it returns me to my list of users. So anyone who discovers the url, c...
asked by 25.07.2014 / 22:17