• Post Reply Bookmark Topic Watch Topic
  • New Topic

Desperate for help  RSS feed

 
nani aman
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
nani aman
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
nani aman
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!