Author: thufirthufir
Date: Jul 12, 2008 01:18
red, green and blue are instance of LabelSliderText, which extends
JPanel. How can I get the three "rows", beans, to line up vertically?
I suppose I could pass in:
"red "
"green"
"blue "
so that the spacing matches up? It's "ok" to pass strings? Hmm, maybe
it would make more sense to pass a Color instance...but maybe that's
overkill.
Also, I can't figure out how to make the JSlider expand horizontally when
the JFrame is enlarged. The surrounding JPane, "green " for instance,
does seem to expand.
thufir@arrakis:~/bcit3621$
thufir@arrakis:~/bcit3621$ cat lab2/src/a00720398/util/ColorSelector.java
package a00720398.util;
public class ColorSelector extends javax.swing.JPanel {
|