>> Presumably you mean something like this:
>>
[quoted text clipped - 18 lines]
> Thank you so much RedGrittyBrick. Unfortunately I dont know how to make
> BDK call getJPanel. I just drag and drop them to the screen.
BDK? Sounds like you are hampered by a bean-oriented development tool
which is preventing you from learning some Java fundamentals.
> The default
> constructor gets called and it pops up on the screen. How do we specify
> which component should be drawn on the screen?
I'm not familiar with this BDK, I don't use a visual forms designer. I
do stuff like this:
class Foo extends JPanel {
Foo() {
add(new JLabel("See - not so hard!");
}
public static void main(String[] args) {
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.add(new Foo());
f.setVisible(true);
}
}
> In addition to that, I was following your advice by using JPanel. Now
> Everything works fine. Unfortunately when the bean is resized on the BDK.
> Only the size of The panel Changes. How can i change the size of the JList
> when the size of the JPanel in Bean changes?
By using a layout manager. Try
setLayoutManager(new BorderLayout());
...
add(scroll, BorderLayout.CENTER);
> Thank you so much for your help and time.
> Sincerely yours.
asd - 04 Mar 2007 22:36 GMT
>>> Presumably you mean something like this:
>>>
[quoted text clipped - 53 lines]
>> Thank you so much for your help and time.
>> Sincerely yours.
Thank you so much for your help. I am actually good with Java. I am trying
to implement a bean that must run on BDK (Home Work).
I am having problems with BDK. Unfortunately I could not find any useful
information about BDK. There are no specifications for it I guess.
Thank you so much for everything you have done.
Sincerely yours.