Skip to main content

All Questions

Tagged with
1 vote
1 answer
76 views

Event detection problems after using context menu in JavaFX (Linux)

I've encountered strange behavior of JavaFX application running on linux. Application is a simple graphic editor. Its main area represented by ScrollPane with two scrollbars, and scroll pane's content ...
vit's user avatar
  • 67
0 votes
1 answer
95 views

Java SWT: Difference between redraw, reskin, update and requestLayout (and pack)

Can anybody please explain to me the difference of the methods Control.redraw(), Control.update(), Widget.reskin(), Control.requestLayout() and Control.pack()? Unfortunately the API documentation does ...
Johannes1984's user avatar
-1 votes
1 answer
53 views

What does this flowchart control statement mean?

flowchart while loop In the picture above, the control statement is "loopCount < ? 10". What is the correct control statement of this one if written in code? (code should be written in a ...
haku's user avatar
  • 11
-2 votes
1 answer
78 views

How to Control agents Population based in their attributes

1)I have Population of agents having gender as Attribute (Male and female) how can i pass agents based on their gender to different Queues after Output Box? 2) or how to Access individual agents from ...
Affan Khan's user avatar
1 vote
0 answers
147 views

JAVA - Control system volume with slider

Well, in order to start with the question, first I want to clarify that I am a newbie in Java programming, so, excuse me if I ask something unconsciously. Recently I have been working on a project ...
Jair R's user avatar
  • 11
0 votes
0 answers
473 views

Java: How to make 2 player alternate turns in Snake and Ladder Game?

This is a snake and ladder game where i cannot use array, i should only use control structures and method. this is my code, i cannot make a second player turn end, i need to make each player alternate ...
Ourvashee RAMJUG's user avatar
1 vote
1 answer
42 views

What this the first three characters inside xml

Why i got following output by reading the content of file as byte array with java? File f = new File( "exampleData.xml" ); byte[] data = getBytesFromFile("data.xml"); for (byte ...
datascient's user avatar
-1 votes
1 answer
547 views

JavaFX: Calculate position to scroll to for specific control

I need to calculate the exact position of a control in relation to the height of the content of a scrollpane to be able to set the vValue of the scrollpane, but my formula seems to be not exactly ...
Nighty42's user avatar
  • 430
0 votes
1 answer
119 views

Reference control by fx:id

I have a calendar screen I have designed for class using JavaFX and Scene Builder. The part where I've placed the number is a label and the part that, currently, says "None", is a button. I want to ...
William Edwards's user avatar
0 votes
1 answer
74 views

Is there a way to use KeyListener in Java to be used in command line application?

I am a beginner and is given a project by my professor. I am in a process of making a console based game (Tetris) and want to implement controls to it for performing specific tasks i.e for movement ...
user avatar
0 votes
1 answer
32 views

Function not doing do-while loop...not returning to main?

I have some code for my class in which we are incorporating stacks. The program reads in a list of function names and the data types that go along with them. It then allows a user to enter a function ...
CollegeStudent's user avatar
0 votes
1 answer
89 views

Dynamically Naming Class Instances in Java

I'm trying to use a foreach loop to create a button for everything in a list: List<String> aList= new ArrayList<>(); And then using a foreach loop; for(String aString: aList){ // ...
flying_loaf_3's user avatar
0 votes
1 answer
602 views

Error: module not found: javafx.controls 1 error

So I wanted to restart my project, and deleted all the files I created that were related to this project (using jGrasp for Java). But then when I restarted my project and compiled the file I received ...
mpl's user avatar
  • 15
-1 votes
1 answer
56 views

Finding Perfect numbers; control structures in java

Hey guys i'm trying to write a code for finding the first 4 natural numbers, but I can't find why my code fails to get me an anwer. I get nothing as an output and the program ends without giving me an ...
Anmoljit S. Virk's user avatar
-2 votes
1 answer
89 views

I need controls of video tag html5 in img tag

I have a website that would need to replicate the controls that appear with the attribute "controls" in the tag "video" in HTML5. These same controls you would need in the img tag for the download and ...
miguel lopez's user avatar

15 30 50 per page
1
2 3 4 5
12