Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+35 votes

I am working on a pop-up window for the calibration so that the user can input their measured values after they click for their pixel values but I can't get my pop-ups to work. Any advice/insight?

asked in CSC285_Fall2018 by (1 point)

3 Answers

+25 votes
 
Best answer
answered by (1 point)
selected by
+12

Stonedahl showed me this today. It was super helpful to me

+20 votes

Our team has been using the swing class so we can have JOptionPanes and message dialogs. this will allow for the user to input values or select options on JButtons. See more options here

https://docs.oracle.com/javase/7/docs/api/javax/swing/package-summary.html

answered by (1 point)
+19 votes

I don't really know what the problem was, but I think the useful solution would be the Text Input Dialog in April's advice. However, don't forget to parseDouble the input, because it will return a String anyway.

answered by (1 point)
...