Questions tagged as 'java'

1
answer

Print combinations of integers in ascending order

"Given two nonnegative integer numbers m and n, generate all m-size combinations of integers from 0 to n-1, in ascending order. Example: m = 3 and n = 5 (0 1 2); (0 1 3); (0 1 4); (0 2 3); (0 2 4); (0 3 4); (12); (1 2 4); (1 3 4); (2 3 4)...
asked by 23.11.2014 / 20:39
1
answer

Generate pdf in java

Good afternoon, I would like some help regarding generating a pdf report in java. I'm using Primefaces to export this report. I created the first line with the fields as you can see in the image below, but when exporting automatically it also ge...
asked by 19.02.2016 / 18:26
2
answers

Boot application with Windows

I have a desktop Java application, and I need it to always be started along with Windows (like a windows service for example). This application should be running in the background and always be open because it will perform tasks periodically usi...
asked by 11.03.2016 / 00:58
1
answer

Error converting from JSF

I'm having trouble converting from JSF, it always returns null . Convert Project: @FacesConverter("projetoConverter") public class ProjetoConverter implements Converter { @Override public Object getAsObject(FacesContext faces...
asked by 05.05.2016 / 15:25
1
answer

Is it possible to change a String of a method at run time?

If I have a fixed String within a method can it be altered using reflection or something like that? Example: public static void main(String[] args) { String nome = getName(); boolean valid = isValidName(nome); if (valid) {...
asked by 20.08.2018 / 17:53
1
answer

How to create a new Build.gradle?

Since I imported my gitHub project, I'm trying this error:    Migrate Project to Gradle? This project does not use the Gradle build system. We recommend that you migrate to the Gradle build system One guy already told me that I need to cr...
asked by 03.11.2015 / 17:11
2
answers

How to iterate an attribute with reflection Java?

In the method below, I use reflection to set attributes of one class in another, based on annotation mapping. How do I map an attribute of a class that is an attribute of another? For example, when using the following annotation: @Orig...
asked by 10.11.2015 / 14:39
1
answer

JMF, Java Media Framework, is there a replacement?

A few years ago, something around 10 years ago, I started a road survey project, this project was being done in Java and used JMF, a framework to handle various types of media, especially video streaming and audio, I started making adaptations t...
asked by 18.07.2015 / 16:36
1
answer

Maven with Proguard

Well, could anyone explain how I can use Proguard in maven's build to obfuscate the web project (war) in deploy direct to jetty? <project xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi...
asked by 20.10.2015 / 00:36
1
answer

How to make the text fit into the text box on Android?

How to set a range for the font size for text to automatically adjust in the text box of Android (TextView) as you type or by entering. Is there a setting to do in Android studio or do Script ?     
asked by 10.01.2016 / 14:43