New to java and swing so please explain fully in your answers.
I have a class with 5 ints in it.
on my jframe i have a button, when you click it it should open a dialog with 5 comboboxes and an ok button.
I want to pass an int to the dialog to tell it how many itmens to put in the first combo box, the other 4 have fixed values.
on pressing the ok the dialog shoudl get the values form the comboboxes and fill out a class instance and return that instance.
i have read a lot of tutorials, i understand i need a custom class but dont know how to make it in netbeans, new class just gives me a code editon and no design view.
I dont know how to call the custom class dialog or to pass it a varialble.
please dont link me here iv read it at least a hundred times.
EDIT: what iv tried.
I tried making a cunton Dialog in netbeans but its built it into the main frame. I tried making it in a class but i dont know how to call the class and im sure the class code is wrong anyway.