Name: Anonymous 2008-02-09 12:36
I wrote a program in Java about a year ago that plots the bifurcation diagram. This is just the recursive function:
Y(n+1)=mu*Y *(1-Y )
It plots a designated number of iterations on the y axis and varies the value of mu over the x axis.
To initialize it asks for Y , the number of iterations of the function to perform and the number of mu values to iterate over. It does this using lines like:
double
y=Double.parseDouble(JOptionPane.showInputDialog("initial y"));
This is obviously an annoying way to start up the program. My question is, what's the easiest way to pop up a window that takes several pieces of user input, preferably with default values.
tl;dr :
What's the easiest way to use Jtable to display and modify a matrix?
Y(n+1)=mu*Y *(1-Y )
It plots a designated number of iterations on the y axis and varies the value of mu over the x axis.
To initialize it asks for Y , the number of iterations of the function to perform and the number of mu values to iterate over. It does this using lines like:
double
y=Double.parseDouble(JOptionPane.showInputDialog("initial y"));
This is obviously an annoying way to start up the program. My question is, what's the easiest way to pop up a window that takes several pieces of user input, preferably with default values.
tl;dr :
What's the easiest way to use Jtable to display and modify a matrix?