Questions tagged as 'listener'

1
answer

How to capture the colors of a Label that is behind another label?

I have two JLabels overlapping each other. JLabel label = new JLabel(); label.setBounds(15, 15, 300, 300); label.setOpaque(true); label.setBackground(Color.red); JLabel label1 = new JLabel(); label1.setBounds(60, 60, 300, 300); label1.setOpaq...
asked by 05.04.2017 / 22:35
1
answer

Java Iterator | Increase within a sentinel

public void actionPerformed(ActionEvent e) { i++; ImageIcon icon = new ImageIcon(files[i].getAbsolutePath()); imagem.setIcon(icon); frame.add(imagem, BorderLayout.CENTER); } }); I have an arra...
asked by 22.09.2016 / 23:03
1
answer

KeyListener for multiple JTextFields

I created a KeyListener to check for a String typed, if it is in the database. If yes let it proceed, if not, issue an alert. The question now is that I have about 50 jTextFields . Is it possible to create a KeyListener...
asked by 03.12.2017 / 20:07
0
answers

Capture event of the android power button with the screen closed

I need to capture the event of the power off button on the android, and cause it to be pressed a certain number of times, an activty appears above the screen to enter password. Pressed the power button 5x Create activity If this is not...
asked by 03.11.2015 / 19:20
0
answers

Android Fragment with TextWatcher - does not work

Good morning! With the help of the staff, I made a calculation scheme that when typing the value in one editText1, another editText2 is updated automatically, and vice versa .. it's just a test converting units. Initially I was trying to integra...
asked by 22.07.2015 / 16:50
1
answer

How do I access the View that triggered one of the events in a TextWatcher?

Explanation: I have a common application where there are several components EditText , where I assign them a handler that would be this here: TextWatcher handler = new TextWatcher() { @Override public void onTextChanged(CharS...
asked by 04.04.2014 / 16:58
1
answer

Application giving Crash on a button within a custom AlertDialog

I'm working with Alert Dialogs and I had an error where the application stopped responding. The following code refers to a snippet where the Google Maps API is being used, which means that when I click on a specific marker it will open an AlertD...
asked by 22.06.2017 / 19:13
0
answers

How to implement a "listener" in javascript for screen viewing?

I need to implement a change in my code so that when I change DIV, that is, I stop seeing the page, the sound that is running stops automatically, as is already the case with Facebook/Instagram videos on web platforms. I made the followin...
asked by 08.02.2018 / 15:01
1
answer

How to implement a listener in a video?

Well, I have a button and when I click it, it will call a function that opens a page with a fullscreen video with autoplay="true". IT HAPPENS THAT, after finishing the video I need to redirect the user to another html page. Can someone tell me a...
asked by 25.10.2017 / 16:49
0
answers

Order of Events Listeners

I have a tableView with a listener when selecting a new row from the table view, and I have a textfield that gets a value from one of the tableView columns; The textfield has a listenter when losing the focus of the field it updates the value...
asked by 29.04.2017 / 17:12