Questions tagged as 'java'

0
answers

How to copy a bitmap in another bitmap

I have a bitmap of 246x400 and I want to create a bitmap of 500x500, once having the 500x500 bitmap, I want to insert the 246x400 bitmap in the middle of the 500x500 bitmap, like this: This is what I have tried: Bitmap bmp2 = bmp1.cop...
asked by 06.07.2018 / 21:33
1
answer

help (jdialog - jframe)

When calling a jdialog there is no problem: //llama a consultar Perfume JMenuItem mntmConsultarPerfumes = new JMenuItem("Consultar Perfumes"); mntmConsultarPerfumes.addActionListener(new ActionListener() { public void actionPerforme...
asked by 03.07.2018 / 22:29
0
answers

refresh to a viewpager

Hello that such a good day to all I want to know in what way I can do a refresh to a viewpager. my problem arises from the fact that in my pager I have 2 calendars one with which I select a range of dates and in the other I only select a specifi...
asked by 06.07.2018 / 14:25
0
answers

Help I need to Delete Text in Java with PDFBOX

Hi, I'm trying to cross out text in PDF files in java with the PDFBOX 2.0.4 library, I currently cover the area with an image, but I discovered that by having OCR in the PDF the text is still selectable. private void cubrir(int page, String im...
asked by 06.07.2018 / 16:32
0
answers

Differences between epoch and timestamp?

I thought that epoch and timestamp represented the same value, with the same number, although getting values with getTime() of class Timestamp in Java, this does not it's like that. The epoch value seems to be the one obta...
asked by 29.06.2018 / 23:56
1
answer

Form info to Servlet and JSP - java

I've been stuck for a few days and I can not move forward. I collect data from a form in SERVLET . I create a ArrayList where I will save the objects that will be created with the fields received through the form I pass the...
asked by 29.06.2018 / 17:32
1
answer

Java unit test help

I am not sure if a unit test can be implemented on a method whose result is variable in time. This doubt is based on the fact that I have a method that receives a LocalDate and returns a String with the date in "dd / mm / yyyy" format. To...
asked by 29.06.2018 / 17:04
0
answers

StackOverflowError when listing resources that contain a list of details

I have the Team and player classes with the following notations Team @OneToMany(fetch = FetchType.EAGER, mappedBy= "equipo", cascade= CascadeType.ALL) List<Jugador> jugadores = new ArrayList<>(); Player @ManyToOne @JoinC...
asked by 01.07.2018 / 23:21
0
answers

How to make the jDialog not go out in Java

I have a Jframe which contains a table and a button to add a new record, when I click I get a jDialog in which I am doing some validations in case you do not enter anything in the fields, the problem is that when you do not enter nothing I get t...
asked by 30.06.2018 / 05:25
0
answers

There is some way to take the second value after the "|" and the last value after | with tokenizer

public class NewMain { public static void main(String[] args) { String sTiempo = "hola | argentina | asd | $320.50"; StringTokenizer st = new StringTokenizer(sTiempo, "|"); while (st.hasMoreTokens()) { System.out.println(st....
asked by 30.06.2018 / 01:06