Posts by Maicon Funke • 443 points
12 posts
-
1
votes1
answer171
viewsQ: How to check variable only with javascript spaces?
I have a chat system, and the send button should not be enabled until the user type some letter. In the example below the button is enabled when the user type something, but if he only type spaces…
javascriptasked Maicon Funke 443 -
2
votes1
answer1339
viewsQ: Difference between Merge() and getInstace() in JPA/Hibernate
I wonder when I should use merge() to update the object instead of changing it through its reference. Example: Produto p = new Produto(); p.setNome("Bola"); p.setvalor("32); manager.persist(p);…
-
2
votes1
answer676
viewsQ: How to maintain the layout of the components created by Windowbuilder in eclipse after compilation?
I created a Jframe using the Eclipse Windowbuilder plugin. Spacing, sizes and patterns have been defined. However while compiling the project the patterns are lost. Below the 2 photos for…
-
4
votes1
answer4154
viewsQ: How to convert a Java project to Eclipse for a Maven project?
I have a Java project in Eclipse that I want to convert into a Maven project. For conversion, I right-click and select the option "Convert to Maven Project" as shown in the figure below. The problem…
-
1
votes0
answers1019
viewsQ: How to generate an XML template from an XSD SCHEMA using JAXB?
I have a Schema . XSD and would like to generate an XML from this template. Below I have this code, however I am using the Jlibs library. I wonder if it is possible to do something similar to the…
-
2
votes1
answer441
viewsQ: Get list of JPA/Hibernate Persisted objects
Hello, how do I get the list of persisted objects before committing it in BD. Follow the example below: Pessoa p = new Pessoa("Joao", 21); Pessoa p2 = new Pessoa("Pedro", 17); Pessoa p3 = new…
-
2
votes1
answer503
viewsQ: Remove selection color from Jtable’s line?
It may sound silly, but I can’t find the method to remove the color from the selection when the mouse clicks on the line. I have a table with red and blue lines, blue colors are lines that mean an…
-
2
votes1
answer677
viewsA: How to set background color on multiple lines of a Jtable?
I ended up solving my problem. I changed the loop of repetition for this condition. if (list.contains(val.toString())) { cellComponent.setForeground(Color.black);…
-
3
votes1
answer677
viewsQ: How to set background color on multiple lines of a Jtable?
I would like to know how to set the background color of multiple rows of the table. In the code below it simply arrow the background in only one line, that is, in the last element of the vector. The…
-
7
votes2
answers57495
viewsQ: Formatting a double in java
I would like to know how to keep the variable double with 2 houses after the comma. Below I have an example, when transforming a String in double if it has values after the point is kept the 2…
-
4
votes2
answers2008
viewsQ: How to pre-process a text for the application in the Weka classification algorithms in Java?
I am doing my TCC where the idea, roughly, part of the collection of tweets and a training of an algorithm machine Learning to classify this data. How I would pre-process this tweet, and the idea…
-
2
votes1
answer911
viewsQ: How to collect tweets through the Streaming API, restricting a geographic location?
I would like to collect tweets through a certain keyword in real time, however I would like tweets only posted in brazil, because when collecting the api returns me tweets from all over the world.…