Questions tagged as 'java'

1
answer

Hide tab - Java

I have a program with several tabs, so I will test if the user is ADMIN, based on this I would like to hide / disable some tabs, I already tested these commands and they do not disable the window: private void SetAbasVisiveis( Usuario usuario)...
asked by 04.04.2015 / 18:57
1
answer

Detecting colors or geometric shapes of an image

Is there a framework for detecting colors or geometric shapes within a static image, such as a .jpg? Preferably for C # or Java Hypothetical scenario: The framework would identify that there are 3 objects in the image above, knowing ho...
asked by 27.02.2015 / 05:08
1
answer

Android: getApplicationContext ()

I'm trying to do Database db = new Database(this.getApplicationContext()); Where Database is a class I have with all the Database-related methods and what I'm calling to populate an ExpandableList. However, I'm getting error in this , the...
asked by 23.10.2015 / 22:49
1
answer

Remove selection color from the JTable line?

It may sound like bullshit, but I can not seem to find the method to remove the color from the selection when the mouse clicks the line. I have a table with red and blue lines, blue colors are lines that signify an action and red other actions....
asked by 19.02.2015 / 14:35
1
answer

The method that sends email works, but how to prevent the amount of incoming emails from being spam?

I have a method that sends email back ground that works well, but I need to make sure that as the amount of incoming email does not come from Spam. I have already researched the Java Message Service (JMS) framework but I have not found a way to...
asked by 19.02.2015 / 20:53
2
answers

How to get multiple JSONObject with the same key?

Basically, I have this JSON: {"gameId":467366059,"mapId":11,"gameMode":"CLASSIC","gameType":"MATCHED_GAME","gameQueueConfigId":4,"participants":[{"teamId":100,"spell1Id":4,"spell2Id":14,"championId":157,"profileIconId":588,"summonerName":"MEDA...
asked by 07.02.2015 / 03:51
1
answer

List View - returning more than 1 data in a row

I'm implementing a% of notes and I have to have a list view that should list ALL previously registered "NOTES" using the listing method implemented in DAO; Each line of the ListView should display the NOTE, Matter, Bimester, and Note Date....
asked by 14.04.2015 / 17:10
1
answer

Retrieve the value of a JTextField through an ActionListener

I'm a little new to java and I was trying to understand the listeners. So excuse me if the mistake is simple. I have a program that creates a simple graphical interface and I want to get the value of a JTextField through a ActionLis...
asked by 15.04.2015 / 23:07
1
answer

Is it possible to perform unit-class testing with inheritance?

I need to do unit test of PlanilhaReader but this extends ArrayList<String> and I override the contains method. Is there any way to run it? @Component public class PlanilhaReader extends ArrayList<String> { fin...
asked by 16.04.2015 / 15:15
1
answer

How to update a JTextArea with JCheckBoxes information?

I'm in need of help on the following, I have a window that the user can enable the JCheckBoxes to write in the JTextArea that lies below, like the following image: WhatIwantedisthatwhenIpressedtheJCheckBoxonthekeyboarditwouldappearamessagesay...
asked by 24.11.2014 / 00:45