Questions tagged as 'java'

1
answer

PrimeFaces Mobile does not work p: poll

I am implementing p:poll on a page that user can see their updated position in a queue. I tried running on a page but it did not work, the updated position in the queue was left blank in the field using Primefaces Mobile API, see the page...
asked by 28.04.2015 / 05:44
1
answer

How to open a GUI built in Eclipse by Netbeans?

I have a code using JFrame , but when I open it through Netbeans I can only change the layout by code. How do I use the code and edit the layout by the Swing GUI builder.     
asked by 04.03.2015 / 20:06
1
answer

Organize list based on an integer value of its elements

I have ArrayList of a class of mine that contains String variables and integers, such as a name and punctuation. When viewing through Adapter I'd like the list to have the punctuation in descending order, but I have not foun...
asked by 01.03.2015 / 03:33
1
answer

Copy OutputStream object to a file

I confess that this is the first time I work with Stream's and File in Java . I currently use Spring in my application, so I use a simple stream utility utility and file's called FileCopyUtils (I do not know if it satisfies m...
asked by 03.02.2015 / 17:51
1
answer

Hibernate with multiple databases in the same application

A system uses a separate database for each client, let's say I have 500 clients, in which case my database server would have 500 data bases , for example: cliente1 cliente2 cliente3 In the Hibernate configuration, a Factory...
asked by 20.01.2015 / 19:29
1
answer

Change data from a specific position in the ListView

I would like to know how I can change data from a certain ListView position. Here I load the database from the ListView: public void carregarEmails(Cliente cliente) { ArrayList<Email> listaView = dao.pegarResultListaEmail(cliente)...
asked by 13.10.2015 / 23:19
1
answer

NetBeans + GitHub = git-receive-pack not permitted

I'm using git to do the control of a college project, we're using netbeans + eclipse and a friend who participates in the project sent me the git link, I made the project clone, but I can not do the push in netbeans. the git-receive-pack not all...
asked by 20.10.2015 / 14:46
1
answer

How to convert HTML code to a PDF file in java?

I'm developing an application where I need to convert an HTML code, which is saved in the database, to a .PDF file. There is no need to save this file to the server. I've never done anything similar. How to do this using Java?     
asked by 09.08.2015 / 05:29
1
answer

how to style the selected JTextPane text?

What I want is to get the selected text from JTextPane and edit it, for example: change font color, size, and family. The problem is that once I change the selected text once, it does not change anymore. My code is that, it's just changing the c...
asked by 17.10.2015 / 08:20
1
answer

Error 404 directed to the Servlet. Problems with Dispatcher

I'm studying java for web (EE) and would like to know if you could help solve a java problem! I have in my web.xml a call to the file erro404.jsp that is in the root of the site to filter pages that do not exist! It turns out that if the n...
asked by 12.08.2015 / 21:01