Skip to main content

All Questions

Tagged with
2 votes
1 answer
256 views

How to dynamically check table is available ("waiting") using Selenium instead of having a fixed sleep

Code block: private void SelectRows() { var wait = new WebDriverWait(Driver, TimeSpan.FromMilliseconds(500); // enabling the Rows this.Page.EnableRowsButton.Click(); wait.Until(_ => this....
Tin Nguyen's user avatar
  • 5,310
0 votes
1 answer
70 views

Is there a visibility problem with this initialization method?

Visibility problem: When multiple threads call method handle(), is the variable redisTemplate the initialized value, or is it null in some cases? Example here: public class InnerStaticClassExample { ...
TiaJiang's user avatar
0 votes
1 answer
31 views

How do I referente all ImageView in android studio? (java)

I have 5 ImageViews, and i want to hide all. My code: findViewById(R.id.foto1).setVisibility(View.INVISIBLE); findViewById(R.id.foto2).setVisibility(View.INVISIBLE); findViewById(R.id.foto3)....
Crypto World Cup's user avatar
1 vote
1 answer
169 views

Android: Changing Views visibility on Activity start | Hide Notification panel on Notification Button click

My app has a Notification that holds a Button. When the user clicks the Button, the app should open (if it was closed) and show a custom dialog, which I've created by a bunch of views. Showing the ...
Nitzan Daloomy's user avatar
0 votes
0 answers
38 views

Adding JPanel on another JPanel on button press

I have created a MainPanel in which I make a bird fly. To this panel, I have to add a PausePanel panel at the press of a button. If I only use pausePanel.setVisible (true / false) when pressing the ...
ilMichigan's user avatar
0 votes
2 answers
47 views

Private and final methods

I am trying to get a better understanding of private and public methods. I am trying to make a private method called GRID_SIZE and let that equal the length(m) of my grid, however, I am getting a ...
user avatar
-1 votes
1 answer
33 views

How to invisible a Linier layout from other activity without using Intent?

I have given here details about my project and I want that when I will click on the Button it will go to the second activity and also it disappears from the second activity layout. Button btnClick; @...
Mhs Shohrawardy's user avatar
-2 votes
1 answer
504 views

Protected variable not accessible within child class in Java

I have the following structure - App.java - package JohnParcellJavaBasics.AccessModifierDemo; import JohnParcellJavaBasics.AccessModifierDemo.*; public class App { public static void main(String[]...
Payel Senapati's user avatar
0 votes
1 answer
351 views

JavaFX Linechart with logarithmic axis not updating well [closed]

I have two linecharts in my application. One is with linear axis and the other is with logarithmic axis. When I want so view only one series in the charts I set the other series and their data not ...
GRETA 's user avatar
  • 61
0 votes
0 answers
114 views

Questions about visibility of Java volatile field

I am just starting to learn about java multi-threading and have been troubled with keyword volatile a lot. Many tutorial talk about the visibility of volatile field, just like "volatile field ...
pythonHua's user avatar
1 vote
0 answers
59 views

Android: "Can't resolve method 'setVisibility' in group"

This piece of code fails to compile because the method setVisibility() cannot be resolved. public void onViewCreated(@NonNull View view, Bundle savedInstanceState) { super.onViewCreated(view, ...
Mayur Chauhan's user avatar
0 votes
2 answers
106 views

How can i eliminate Empty spaces in recyclerView when trying to hide cards with null properties?

Empty spaces in recyclerView when trying to hide cards with null properties Hi, i'm new here. So this is my first question. I am trying to use the google Books API for a task and when I implement ...
Leo Rodenas's user avatar
0 votes
1 answer
819 views

Intellij cannot resolve method even though it is public (Java)

I have googled this a lot, invalidated the cache, and I can't seem to find an answer. For background, this is a timetabling system using constraint solving. I have a custom class called Period with ...
Donagh's user avatar
  • 109
0 votes
2 answers
919 views

How to change visibility of textview on button click without providing ID to them?

In this I need to know that how do I access a view without providing the Id to them in this there will be no id provided in any of the file. Without the use of external libraries like viewbinding, ...
Khush Pajwani's user avatar
-1 votes
3 answers
416 views

Java Overridden method visibility scope

How is the following program correct? abstract class Calculate { abstract int multiply(int a, int b); } public class Main { public static void main(String[] args) { ...
rahul sharma's user avatar

15 30 50 per page
1
2
3 4 5
31