Questions tagged as 'java'

1
answer

How does an annonymous innerclass arrow an instance private variable?

Given that Java does not actually have closures , but emulates behavior with a technique using inner classes , the following code: class Test{ private int myField; private void doSomething(){ someInstance.setListener(new on...
asked by 28.08.2018 / 03:10
1
answer

Passing a list of arguments to a Jasper Reports query

I'm redoing reports in Jasper Reports here from the company. I am migrating to have an agnostic reporting service the structure of the report's SQL query. Before, the system was deeply aware of how such a query was made, but this ran into some o...
asked by 13.04.2018 / 22:16
1
answer

Problems with graphs in Java

I'm making a URI question and in the input they ask so.    Entry: Entry ends in EOF. For each test case, the first line contains two positive integers C and P representing the number of cities (2 < = C < = 50) and the number of bridges...
asked by 06.09.2018 / 16:12
1
answer

JComboBox does not allow item exchange

I have a JComboBox that allows to select only the first item clicked, in case I want to change the selection it does not allow. No jPanel has two other combos that are identical with what has the behavior explained, but they wor...
asked by 09.01.2014 / 15:05
1
answer

How to put a div inside an iframe?

So, I'm trying to make only one part of my HTML page refresh at every "X" times. I was trying to accomplish this through AJAX, but it was giving me a lot of trouble. So I decided to change my plan. Here's my problem: I'm passing a model th...
asked by 17.08.2018 / 20:28
1
answer

What is Flyway and when to use it?

The system recently called attention to this question , and it talks about Flyway. So, I'd like to know: What is Flyway? What problems does he propose to heal? When to use it? What are the competing solutions? Is it for multi-ten...
asked by 19.02.2018 / 13:02
1
answer

Link does not send parameters and redirects to Servlet

I placed in my index page where I have three links one with the name of T-shirts, Bermudas and Pants in which% I put% so that when I clicked the link it was redirected to the servlet and sent the parameters according to the link, but that does n...
asked by 01.11.2017 / 20:48
2
answers

Why does the new ActionListener instance receive a parenthesis and a; (semicolon) at the end?

I've never seen this kind of code structure in the instance, what does it do?    The ActionListener class to instantiate it needs to be put like this: ActionListener trataEventos = new ActionListener(){ public void actionPerformed(java.aw...
asked by 01.04.2016 / 16:06
1
answer

RowFilter.regexFilter does not filter columns of type Date in JTable

I have JTable with a TableModel custom, and I'm trying to run a search field using JTextField . However, columns of type Date and my class Cadastrante are not searched. In my TableModel , I overwritten...
asked by 08.04.2016 / 15:27
1
answer

Difference between scheduleAtFixedRate and schedule in the ScheduledExecutorService class

What is the difference between scheduleAtFixedRate and schedule ? I'm developing an app on Android that I want to have a delay of 50 minutes before starting an action and repeat that same action in the next 50 minutes, but I'd li...
asked by 12.02.2015 / 16:32