aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes menu in loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "menu in loop" Watch "menu in loop" New topic
Author

menu in loop

vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello all,
Can anyone tell me can we write
//means array of submenus are allowed

Because iam using a loop in that i want to get in this way if not possible is there any alternative for this please help me.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Originally posted by vin Hari:



Are you getting any errors while using it? Or have you not tried it out yourself?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
vin Hari
Ranch Hand

Joined: Nov 16, 2006
Posts: 161
Hello,
Thank you for reply i tried already i was not getting means it was showing some exception,but while declaring
for ex: No error or exception.
but while assigning in a loop
here it throws an exception ArrayIndexoutofbound Exception,please if anyone have used it please reply me.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Originally posted by vin Hari:
here it throws an exception ArrayIndexoutofbound Exception,please if anyone have used it please reply me.


Without seeing your code, I cannot figure out why you are getting the exception.

Here is a code snippet which works properly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: menu in loop
 
Similar Threads
code convention and swing construction
JMenu Construction problem
How to create horizontal menus
JMenu Listener?
Resize problem with JMenuBar