All Questions

1
answer

Aggregation relation and class attribute

Does aggregation only occur when a A, class that aggregates a B class has an attribute of type B ? Can aggregation exist without necessarily having one attribute having the type of the other? For example, if I instantia...
asked on 16.12.2015 / 21:57
1
answer

I can not save a Dictionary

I have a page that may have access not allowed, open for reading or open for reading and writing. Although the page is completely closed, the owner of the page can choose some users of the system that can have access to it. These exceptions can...
asked on 23.12.2015 / 20:04
1
answer

Stop notification (ringtone)

I have an Android application that wakes up with the standard notification system ringtone. The problem is that when it clicks the notification the alarm does not stop. I use a class for notification and one with BroadcastReceiver public cl...
asked on 31.12.2015 / 11:00
1
answer

How to open JInternalFrame window after login?

I'm new to desktop java and am doing a program with swing , and would like to know how to JInternalFrame open after login is done, follow the code for analysis. if(usuarioText.getText().equals(objConexao.rs.getString("nome"))...
asked on 13.12.2015 / 16:00
1
answer

How to pause execution for a while (similar to a "wait" or "sleep")?

This code is working and running under an existing account on this site , what I want to do is: Add a pause, a type of While , Wait , Sleep or ReadyState , after login and before going to the new tab. This line would re...
asked on 25.12.2015 / 05:22
1
answer

Criteria do grails

Somebody please tell me what this $ {result [0] [0]} means, why did they put two pair of brackets? def criteria = Person.createCriteria() def result = criteria.list { projections { max('age') min('age') } } println "The maximum age i...
asked on 01.01.2016 / 21:21
1
answer

Will other platform users see the sources on my site?

The question is simple: I have a website, its default font is Segoe UI , and Segoe UI Light , the site uses only those two. In Windows, the site appeared correctly and without problems, I now have doubts that if they enter through a Chrome (fo...
asked on 10.12.2015 / 23:03
1
answer

How to install the TIdHTTP component in Lazarus?

I noticed that Lazarus does not come by default with the component TIdHTTP , unlike Delphi , but I imagine it's possible to instantiate the component somehow. p> How to install?     
asked on 16.12.2015 / 01:35
1
answer

Data Truncation with Hibernate

Good Night. I have a problem with persisting an object, hibernate throws an exception saying that the data is too long for the "street" column, of type String. Follow Pojos and DAO. Address @Embeddable public class Endereco implements...
asked on 07.12.2015 / 03:10
1
answer

JavaScript canvas builder

I'm having a question when creating a button builder for Canvas in JS, I can already detect the click in the button area, but I would like to simplify the code with a constructor, to streamline my process content, but I have no idea how to do it...
asked on 04.12.2015 / 18:45