Skip to main content

All Questions

Tagged with
0 votes
0 answers
34 views

Is there a way to permanently bring a component to the top layer in Java Swing?

I have a program which creates a panel containing several text spaces, which contain number values. Over these values, I'd like to create an up arrow button and a down arrow button to increase the ...
Evan Troxell's user avatar
1 vote
2 answers
197 views

How do I get keyboard navigation for the SelectedRow in controlsfx.TableView2?

I'm using the TableView2 component from the library ControlsFX. In an simple example (see sourcecode below) the ArrowKey-Navigation in the table is gone after changing import javafx.scene.control....
bobndrew's user avatar
  • 405
0 votes
0 answers
33 views

Custom popup don't always get focus

I try to basically implement my own combobox for Swing, because JComboBox has some behavior that doesn't suit my requirements and what I need to override is private, so... Anyway, I tried making a ...
UglyBob's user avatar
  • 267
0 votes
1 answer
93 views

Android-Studio, EditText inside RecyclerView inside CustomDialog focus issue

I have a problem with the focus. Everytime I click in the EditText I can write 1 character and then it loses the focus. I´ve searched and I found some solutions if my EditText is inside a RecyclerView,...
Adrián Mon Maroto's user avatar
1 vote
0 answers
27 views

How to put text using JButtons in the JTextField which has focus? [duplicate]

I've made two JTextField controls named textfield1 and textfield2 in Java. I've also made a number pad using JButton components and added an ActionListener to each of them. Now I want the ...
محمد's user avatar
1 vote
1 answer
39 views

How can I move my caret on the other JTextField

I have this code that create some text fields and I want that my caret changes his position to the other JTextField after pressing ENTER. Is it possible to do this? In the picture, I gave an example ...
Klopo22's user avatar
  • 57
0 votes
2 answers
286 views

How to set the focus to an image or a label ?[Java Swing]

Let's say I have several images, each of them in a label, is there a way to set the focus on one of the images or JLabels by clicking at it and do some image processing on the clicked image (blur, ...
Kirito's user avatar
  • 1
0 votes
0 answers
98 views

Why is the focus request not working in this code?

I am trying to stablish the focus in the label "test", but it remains on the item "play". public class GamePanel extends JPanel { public GamePanel() { super(); addItem(&...
Alcor717's user avatar
1 vote
3 answers
732 views

How to switch between chrome windows opened by different webdriver in Java?

When opening browsers using the same driver instance the switch works (followed https://www.browserstack.com/guide/handle-multiple-windows-in-selenium)but when I try to open two different windows with ...
awkward's user avatar
  • 37
0 votes
1 answer
34 views

create dialog from listener

Faced the following situation. I have a list of projects in JCombobox. Changing the line in the combo box causes my itemStateChanged method to be called from the ItemListener interface. And it is ...
A.Sol's user avatar
  • 41
0 votes
0 answers
33 views

Correct way to execute a Runnable after focus transfer

I want to transfer focus to a component and execute a Runnable when the component is focused. My problem is that the method Component.requestFocusInWindow don't grant me a direct focus transfer even ...
Sergiy Medvynskyy's user avatar
3 votes
1 answer
123 views

Java application - Space vs Enter for activating buttons on Mac

I'm creating a java swing application. The window has several buttons, and I would like the user to use the tab key to switch between buttons, and then press enter to activate the selected button. I'...
Sambo's user avatar
  • 199
0 votes
1 answer
32 views

Unable to navigate from app bar after setting focusable attribute

I am creating a very simple WebView app with a few useful links and I want the initial focus to be on the app bar with easy access to the menu. This works if I add focusable attributes to the layout ...
Brenton's user avatar
  • 35
0 votes
1 answer
254 views

Move jcomponent to back without using JLayeredPane

I have written a DragAndDrop MouseListener. Component A is a "background" image that is behind Component B. Both are located on a JPanel. I have made the image draggable. However, I want the ...
ThePrince's user avatar
  • 864
1 vote
1 answer
1k views

Set talkback order in a ConstraintLayout

How can I set the talkback/accessibility order in a constraint layout? I have a layout with a couple of text/imageviews. By clicking on the layout talkback reads them in order. How can I change the ...
SkurSkurrrr's user avatar

15 30 50 per page
1
2 3 4 5
47