Forums Register Login

Desperate for help

+Pie Number of slices to send: Send
I have problem in my security class which can retrieve quan intances from accountability class but cannot view in JPanel in Security. It can view in console but not in JPanel. Is anybody could help me with this. I have the codes below.



i just have a few days left to submit my program but i couldn't figure out how to solve this.
+Pie Number of slices to send: Send
Can you give us a clue as to what's wrong? How do you see incorrect behavior? What specifically to you expect, and what happens instead? Since we cannot compile and run your code as it stands, we're worse off than you!
+Pie Number of slices to send: Send
I am sorry, i am too desperate with my problem.

I have 2 class which are security and accountability class. Both class implements JPanel. Security class run the main method and execute JPanel. In Security JPanel i wish to click on EXECUTE button and wish to pop up Accountability JPanel.

In Accountability JPanel, there are a checklist. When the checklist is fill, Accountability JPanel will close and a result(which is quan instance) generate and views in Security JPanel.

My problem are :
1) i wish to view the result (which is quan) from Accountability class in Security JPanel. What i can only quan value(accountability class) in console from security class.

2) I wish to pop the Accountability JPanel when Execute button is click. But i only managed viewing both JPanel at the same time.

Can you help me please? I really desparete.
Thanks .

[ November 16, 2004: Message edited by: nani aman ]
[ November 16, 2004: Message edited by: nani aman ]
+Pie Number of slices to send: Send
Without seeing enough of your code to really make sense of where things are not working, I suggest that maybe you use CardLayout in your Frame and change Cards on the press of a button. For more information and a tutorial click here
As for your first point to which component on the panel are you sending the methods answer to? Is it visible? Have you repainted ?
Post your code so far, with comments on where the errors are occuring.
+Pie Number of slices to send: Send
As for your first point to which component on the panel are you sending the methods answer to?
----> public void evalAccountability(double quan)
Is it visible?
---> it just visible in console but not in Panel.
Have you repainted ?
---> yes i do but i am not sure it the right way.

how can i send attachment of the class here?
+Pie Number of slices to send: Send
You cannot attach a file here like you do in email. However, you can copy and past code here to your hearts content. Be sure you use UBB CODE tags. Also, while you should post enough code to illustrate your problem, you probably don't need to post all the code from your program. I for one am a little reluctant to go through much more than 50 lines of code. You can definitely help by pointing out where you are trying to do specific parts of the description you gave above.

HTH

Layne
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 584 times.
Similar Threads
Couldn't view to panel
confusion on (==)
standard deviation
How to store multiple items into a shopping cart?
ServletContext AttributeListener
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:58:43.