Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

eric vitallis

Greenhorn
+ Follow
since Dec 22, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by eric vitallis

thanks alot ! guiPanel.validate(), followed by repaint() worked, and all the different "gui"s are displayed accordingly, thanks
16 years ago
sorry for the name John, i have updated my profile.

Thanks Dan for the reply , am going to try that, thanks
16 years ago
thanks alot for , the reply, i got another urgent assignement and i had to work on that first.

ok,the pb is that all is first put in a panel before finally placing the panel in a frame.I therefore dont have access to the frame at that point(in the code)..
16 years ago
it gets worse.., with this:

guiPanel.removeAll();
guiPanel.add(uo.getGUI(), BorderLayout.PAGE_START);
guiPanel.validate();

it doesnt really rub off the stuff on guiPanel, so if anything is added ,
it appears on top of the components that were to be removed...
16 years ago
hi

i have this problem, once again i have a splitpane that has 2 scrollpanes on the left and on the right.the left scrollpane contains a tree and the right sp contains a jpanel that displays various components depending on the node selected.
the problem is , when selected , everything seems to work fine until the retrieval of the gui in the userObject (userObjec.getGui() returns a jpanel containing components).To display the gui i do something like:

//first display
guiPanel = new JPanel(new BorderLayout());
guiPanel.add(uo.getGUI(), BorderLayout.PAGE_START);

//after an event in the valueAdded() method of treeSelectionListener
//******the problem is here

guiPanel.removeAll();
guiPanel.add(uo.getGUI(), BorderLayout.PAGE_START);
guiPanel.validate();

no uo.getGui() returns the correct jpanel (i did a print() ) , but the remove all doesnt seem to work well because at times ,the component displayed on the right is the correct one and at times it doesn't change.. which seems bizzaire..

any ideas.. hoping i was clear enuff

thanks in advace
16 years ago
sorry for the name thing.. been to so many forums but gotta admit that this one is wow and super effective, thanks alot for the answer ,i had tried too many things that i ended up confusing myself, once again , thanks
16 years ago
hi,

i have a jsplitpane that has a jscrollpane on the left on the right.The one on the left contans a jtree while the one on the right contains several jpanel(and different layout managers).The problem comes in the displayam of the split pane, its compressed and i have to manually resize it to see the components.

i thot that on calling the frame's pack(), the frame is resized according to the components it contained but apparently this isn't the case.Further more,
i displayed the components' sizes and they're all Dimension(0,0).

Seems i forgot something , or should i expicitly set some minimum size to all jpanels .. am really not sure of what to do , so if anyone could give me an idea , i'd be super grateful.
Thanks in advance
16 years ago