Reflection, menus, and ActionListeners

Hi everybody,
I was doing some reading in the Java APIs and came across reflection, and it seemed like a good idea for some menus I'm implementing, but I'm not fully sure, so I'd like some advice, please, if anyone would be willing.
I have a lot of menus on a menu bar, and each menu item on the bar pops up a different kind of window (each window is distinct and has its own constructor; they're all encapsulated objects). My original idea was to add actionListeners to each menu item like so:
for each item:
item.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
// the constructor for a particular window
});The issue with that approach, as I've learned, is that this repetitive call, while it works, bloats my classes, makes them almost impossible to read, and involves a lot of cutting and pasting so it's prone to mistakes.
So...then I stumbled on reflection. From reading the API, it appears (please correct me if I'm wrong) that you can get particular methods and constructors from classes using reflection, and then call them. This would allow me to make two small overloaded methods, to cut down on the amount of code, like so:
public JMenuItem addConstructorAction( JMenuItem item, Constructor c ) {
item.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
c.newInstance();
return item;
public JMenuItem addConstructorAction( JMenuItem item, Method m ) {
item.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
m.invoke( params );
return item;
}So, am I right that this is how reflection works, or have I misread something? If anyone could give me advice on how to use this properly or an alternate idea, I'd appreciate it.
Thanks,
Jezzica85
PS -- Sorry about the indenting on the code examples; I don't know why they didn't indent, hopefully they're still readable.
Edited by: jezzica85 on Jan 14, 2009 7:04 AM

Well, I didn't think this would turn into a SSCCE situation, but that's OK-- I probably should have assumed that to begin with. Anyway, here's a small program that shows what I'm talking about:
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
public class MenuTest {
     public static void main(String[] args) {
          try {
               JFrame frame = new JFrame();
               frame.setSize( 300, 300 );
               frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
               JMenuBar test = new JMenuBar();
               JMenu menu = new JMenu( "myTest" );
               JMenuItem item = new JMenuItem( "TestWindow test" );
               item.addActionListener( new ActionListener() {
                    public void actionPerformed( ActionEvent ex ) {
                         new TestWindow( "TestWindow" );
               menu.add( item );
               JMenuItem item2 = new JMenuItem( "TestWindow2 test" );
               item2.addActionListener( new ActionListener() {
                    public void actionPerformed( ActionEvent ex ) {
                         new TestWindow2( "TestWindow2" );
               menu.add( item2 );
               test.add( menu );
               frame.setJMenuBar( test );
               frame.setVisible( true );
          } catch( Exception e ) {
               e.printStackTrace();
               System.exit( -1 );
class TestWindow extends JDialog {
     public TestWindow( String title ) {
          setTitle( title );
          setSize( 300, 300 );
          setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
          setVisible( true );
class TestWindow2 extends JDialog {
     public TestWindow2( String title ) {
          setTitle( title );
          add( new JLabel( "blah" ) );
          setSize( 300, 300 );
          setDefaultCloseOperation( JDialog.DISPOSE_ON_CLOSE );
          setVisible( true );
}Basically, each menu item calls up a different kind of window (these are very simplified obviously). In my real application I have more than 40 different windows (because the application needs to do a lot), so repeating the actionListener code can get tedious. It doesn't look like much here, but 9 lines of code (including whitespace for readability) times at least 40 menu items is more than 350 lines of code for menu items alone. That's what I'm trying to avoid.
Thanks,
Jezzica85

Similar Messages

  • Trouble with Arrays of Menus and Menu Items

    Okay the short story is I am designing a GUI for an application, it has a lot of menus, and a lot of menu items per menu.
    I thought like in normal Java I could simply make an array of Menus and several arrays of menu items. My problem is that it compiles fine, but spews tons of exceptions. I am using Netbeans as my IDE.
    Here is a sample of my code. Its not the whole thing, but its the part that I suspect has problems since it worked before I switched to doing them as arrays.
    Menu [] menus = new Menu [11];
    menus[0].setText("File");
    MenuItem [] file = new MenuItem [8]; //FILE MENU DEFINITIONS
    file[2].setText("Open"); //open
    file[2].setOnAction(new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent arg0) {
    FileChooser fc = new FileChooser();
    File file =fc.showOpenDialog(primaryStage);
    // file[2].setAccelerator(null);
    menus[0].getItems().addAll(file);
    MenuBar menubar = MenuBarBuilder.create()
    .build();
    menubar.getMenus().addAll(menus);
    VBox vbox1 = VBoxBuilder.create()
    .children(menubar,scrollPane1,btn)
    .build();
    ap.getChildren().addAll(vbox1);
    Anyways the stuff compiles just fine no errors. But Netbeans spews exceptions like a guy who chugged a bottle of ipecac and the programs bombs.
    Here is some of them.
    Exception in Application start method
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at com.javafx.main.Main.launchApp(Main.java:642)
         at com.javafx.main.Main.main(Main.java:805)
    Caused by: java.lang.RuntimeException: Exception in Application start method
         at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:403)
         at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
         at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: java.lang.NullPointerException
         at javafxapplication2.JavaFXApplication2.start(JavaFXApplication2.java:37)
         at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
         at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
         ... 1 more
    Java Result: 1
    I am not really sure what to do. I would like some recommendations.
    If possible I would still like to use arrays of Menus and Menu Items, but if its not possible, I would like to know and understand why not.

    I apologize if I don't fully understand. I am still kind new to this. But It was my understanding that .jar file was made after compiling not before. I am not really sure what you mean by class path. Could you give an example. Again this code worked wonderfully before I used arrays. If I comment it out and replace it with dummy code like this it compiles and runs just fine.
    MenuItem open = new MenuItem("TEST");
    Menu debug =new Menu("DEBUG");
    debug.getItems().add(open);
    MenuBar menubar = MenuBarBuilder.create()
    .build();
    menubar.getMenus().addAll(debug);
    StackPane rootz = new StackPane();
    final TextArea textArea =TextAreaBuilder.create()
    .prefWidth(600)
    .prefHeight(400)
    .wrapText(true)
    .build();
    ScrollPane scrollPane1 = new ScrollPane();
    scrollPane1.getStyleClass().add("no-border-scroll-pane");
    scrollPane1.setMinSize(400, 400);
    scrollPane1.setContent(textArea);
    VBox vbox1 = VBoxBuilder.create()
    .children(menubar,scrollPane1,btn)
    .build();
    ap.getChildren().addAll(vbox1);
    btn.setOnAction(new EventHandler<ActionEvent>() {
    @Override
    public void handle(ActionEvent arg0) {
    System.out.println("Hello World!");
    FileChooser fc = new FileChooser();
    File file =fc.showOpenDialog(primaryStage);
    Scene scene = new Scene(ap, 760, 500);
    primaryStage.setTitle("Hello World!");
    primaryStage.setScene(scene);
    primaryStage.show();
    * The main() method is ignored in correctly deployed JavaFX application.
    * main() serves only as fallback in case the application can not be
    * launched through deployment artifacts, e.g., in IDEs with limited FX
    * support. NetBeans ignores main().
    * @param args the command line arguments
    public static void main(String[] args) {
    launch(args);
    }

  • Changing the size of fonts in InDesign's menus and toolbars?

    Is it possible to change the size of fonts in InDesign's menus and toolbars? I'd love for the Control Panel at the top to be a bit easier to read.

    Thanks Bob, didn't see it anywhere but figured it was worth asking. I think the size is a little biased toward people with better vision than me but I guess I'll have to live with that.
    Jon

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • My pulldown menus and bookmarks have disappeared. How do I get them back?

    Today, without doing anything to the browser, Firefox's pulldown menus and my bookmarks have all disappeared and I can't figure out how to get them back. I still have the icons for the basic tools, like the home page, but all the regular pulldowns, which I use frequently, are gone. Any ideas?
    I have already downloaded the newest version of Firefox to see if this would work and it did not. Anybody?

    If ALL your menus have disappeared, press F11 (you may have to hit the Fn key simultaneously). If only one or two of the menu bars have disappeared, hit F10 (again, Fn key may also be needed, depending on your settings). This will bring the menu bars back temporarily--until you click on something else on the screen. While they are showing, hit View/Toolbars and check whichever menu bars you wish to appear. Unless you have a deeper issue, this should fix the problem.

  • Menus and Fonts too small with Panasonic HDTV

    I just hooked up a new Mini (Intel chip) to my Panasonic HDTV-- 34" Model No. CT-34WX53-- using a DVI cable. The desktop shows up fine, but the menus and fonts are so tiny that I can't read them. When I try using Front Row, the pictures and vide are gorgeous and the fonts in Front Row are fine. It's just the fonts and menus in on the desktop and in other programs that are too small. Does anyone know how to fix?
    Mini Core Duo   Mac OS X (10.4.5)  
    Mini Core Duo   Mac OS X (10.4.5)  

    Edward,
    That's the price of having a gazillion pixels!
    You have two options - send less pixels to the display or change each application (Including the finder) to show larger fonts and icons.
    The lower the resolution option is easy and fast. The downside of "zoom"-ing the display is it may look blocky at certain resolutions and the fonts and fine details in photos and movies may be lost if the mac has to alias or scale the video. If you do this - you might want to enable the menu bar item for display preferences to quickly switch between the setting you prefer. I use one setting for actually using the mac and another setting for playing movies and showing slides in FrontRow.
    The change the preferences to make the fonts and icons larger is more of a pain but yields the most crisp display and you don't have to change things up. I would start with Finder Preferences (select an icon on your desktop and on the View menu - show view options - crank up the icon size and font size.) Unfortunately - you have to do this in each application you use. It also won't change the menu font sizes - you might need an "extension" from a developer to change that.

  • Black dots in drop down menus and in previews.

    I just upgraded my Mac to 10.9.3 and i have these weird tiny little dots appearing in my drop down menus and when I open an image in Previews. Actually, some images just look crazy in Previews with giant squares all over them. Any idea how to fix this? I have this same operating system on an older computer at work w/out this problem.
    OS X 10.9.3, 2.8 GHz Intel Core i5

    Is it only Preview that you are seeing this problem? If no, then it could be a hardware issue. Make a Genius appointment. Troubleshooting and analysis are a free service at the Genius Bar.
    http://www.apple.com/retail/geniusbar/
    I am already running 10.9.3 so am not sure what good that would do
    Running the combo updater often fixes odd issues. It's easy to do and certainly don't hurt.
    MORE INFO ON WHY RUNNING COMBO FIXES ISSUES
    Apple updates available from the Software Update application are incremental updates. Delta updates are also incremental updates and are available from Apple Downloads (software updates are generally smaller than delta updates). The Combo updates contain all incremental updates and will update files that could have become corrupted.
    Combo updaters will install on the same version as they're applying--no need to roll back or do a clean install. So if you think you've got a borked 10.9.3 install from a regular update, just run the 10.9.3 Combo Updater on that system.
    "Delta" updaters can only take you from one version to the next. For example: 10.9.1 to 10.9.2. If somehow the 10.9.2 is missing something it should have, and that something isn't changed between 10.9.1 and 10.9.2 it will still be stale after the delta update.

  • Are there any problems with motion menus and buttons in DVDSP 2 on OS 10.4?

    I have not used DVD Studio Pro 2 since upgrading to Tiger but it appears to no longer be showing moving motion on menus and buttons.
    Are there any problems that I should be aware of when using DVDSP2 on OS 10.4?
    I have not upgrade to a newer version only because I do not have any HD software to create DVDs.
    Thanks
    Paul

    New Discussions ReponsesThe new system for discussions asks that after you mark your question as Answered, you take the time to mark any posts that have aided you with the tag and he post that provided your answer with the
    tag. This not only gives points to the posters, but points anyone
    searching for answers to similar problems to the proper posts.
    If we use the forums properly they will work well...

  • More info needed on BC Dynamic menus and using CSS with them

    Hi all,
    The BC Gurus tutorial on Dynamic Menus and how to style them with CSS made no sense to me, unfortunately. The presentation was too rushed and the screen too small to see what was happening.
    In a previous question I found out how to apply CSS classes to BC menus after a bit of a run around.
    I was putting the # in front of the Item ID name and a . in front of the class name and this was not necessary.
    I have further questions though, as I am still struggling to get a BC Dynamic menu to style properly with the CSS I have created.
    1. If you choose CSS as the menu type, can you set the font, background colour and rollover state of the menu items in the Dynamic menu section? Or do you have to style it all in the CSS stylesheet?
    2. If you choose CSS as the menu type, the option to say how the submenu sits under the root menu disappears. So do you need to set this in the CSS stylesheet? And if so in which element? UL or LI?
    3. If you choose CSS/HTML only, how is this different to the option of CSS for the dynamic menu?
    4. If you choose CSS as the menu type and if you set a width and height in the menu item, and then set a different width and height in the CSS stylesheet, which width and height wins?
    5. If you want a dynamic menu to show on an Android phone, do you have to choose CSS/HTML only and do all the styling in the CSS stylesheet? Or should you avoid dynamic menus all together and just use a UL list in the template? (I am doing a responsive fluid grid layout in DW for the template).
    6. I am finding that the dynamic menu I have done, with CSS as the type, does not show and hide the sub menu items properly on an Android phone. Is there a problem with the javascript in Dynamic menus?
    Thanks for any help you folks can give on these questions!

    .pacnew files are only created if you have modified the default (or a change has been made to the config upstream); in both cases, you should be looking to incorporate the changes.
    It seems some new options are being shipped with lxdm: you want those in your config (turning them on or off is a matter for you and the man page to sort out)...

  • Displaying menus and dialogs in different languages

    According to
    http://docs.info.apple.com/article.html?artnum=303588
    Mac OS X could not display menus and dialogs in Polish even when it was selected as the primary language. In other words, Finder was operating only in languages further in the language preference list. I wonder whether users of Macintosh computers sold in Poland had to really use them in English or another language.
    My particular problem is that I am passing iMac indigo running OS X Panther to my father who lives in Poland and knows only Polish. I searched left and right and I can't find anyway to make menus and dialogs to display in Polish. Obviously, Polish dictionary for Finder is missing (my Mac has English and German). But somehow I can't believe that Apple was successful selling computers in Poland without Polish language. Some applications in Panther, like iTunes, do speak Polish.

    I would buy Polish OSX Panther if I was sure that this solves my problem.
    Apple itself never provided a Polish localization for Panther, which was released 5 years ago. But at that time I believe that http://www.apple.com/pl/ did have a special add-on to provide this. You would need to ask them whether they still have that available someplace.
    It would be a lot better to run Leopard, which has Polish included, if possible.

  • Actions and ActionListeners as parameters

    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )It seems like doing it this way would result in a lot of extra code, and hence become a real pain in the neck. So, I was curious, has anyone else either tried to do this before, or do you have any ideas as to how I might be able to do this more efficiently? When I looked at the API it didn't look like Actions and ActionListeners share a root class I can use.
    Thanks,
    Jezzica85

    jezzica85 wrote:
    Hi everybody,
    I want to overload a method so it can take either 2 Actions, 2 ActionListeners, or one of each. The issue with this is that I'd have to make 4 overloaded signatures and almost identical methods, like this:
    method( action, action )
    method( action, listener )
    method( listener, action )
    method( listener, listener )
    Well, if you want to support that then you are just going to have to do suffer through it, the only shortcut I can recommend is that your method(action, listener) and method(listener, action) are the same so you only have to implement 1 and just use the other as a entry point to call the one you wish to contain the code.

  • Why is the Photoshop font size extremely small for their navigation menus and tools?

    Why is the font size for the Photoshop Cloud navigation menus and tools displaying extremely small on my laptop? I can barely see them. The other Adobe Cloud applications don't display small.

    funkotronic13 wrote:
    Is a readable interface an unreasonable expectation?
    Not at all, and we should well expect that Adobe is working on it.  By their own admission they ARE working on it.  I don't sense "deafening silence" at all.  But results won't/can't be instantaneous and they're not going to promise you release dates.  Life is not like that, no matter how many times you click your red shoes together.
    It's not hard to understand that right now only a small minority of Photoshop users are running high dpi screens that can't take advantage of the 200% setting.  And it was the choice of those users to buy such hardware even in light of the fact that Photoshop can't work fully well on it yet.  Adobe didn't force anyone to buy a 150 ppi display.
    Frankly, if you've chosen such hardware even though Photoshop doesn't offer 150% scaling, it's your own fault.  I recently invested well over $1000 in a new monitor and I planned well enough ahead to buy a 100ppi model (Dell U3014, and it's GREAT).  There's a reason that very new technology is called "bleeding edge".  If you want "To Work" instead of "Dealing With Quirks", sometimes you have to be conservative.
    A majority of Photoshop users DO expect new and useful features, however, such as new tools, new camera support in Camera Raw, etc., so Adobe understandably cannot dedicate every resource they have to revamping Photoshop's user interface just for a special few folks who have irresponsibly adopted new display technology.
    We can debate all day how much Adobe ought to be spending on engineering development, but you and I don't run the company.  We don't make business decisions for them.  I do, however, claim to understand their capabilities and limitations - possibly better than most - because I'm in the same business.
    I can only recommend you be patient.  One day Photoshop will respond to your desktop settings.
    What the heck has anybody ever accomplished here, with Adobe, in either fashion?
    Rhetorical or not, some quite tangible things do come to mind...
    At one time I couldn’t paste my clipboard containing a grayscale image into a new document via an action assigned to a key; the color engine would crash.  Today I can do so without incident.
    At one time multiple Help windows would pop up unexpectedly, often when working in the Styles panel.  Today they don’t.
    At one time I had to select Basic GPU mode.  Today I use Advanced GPU mode without a problem.
    Once running Liquify or Smart Sharpen or a number of other things were slow, especially on big images.  Now they're quite fast, with GPU acceleration.
    At one time an action could not write data back to a document when in windowed mode.  Today it works.
    At one time panorama stitching and focus stacking did not work.  Now it works.
    At one time most filters only worked on 8 bits/channel data.  Now many of them can handle 16 bits/channel.
    Once naysayers predicted that the Photoshop Photography bundle would shoot up in price.  Yet today it's still $9.99 a month.
    Once it was impossible to read Photoshop's UI on a 200+ ppi screen.  Now there's a new 200% setting for that.
    I'm sure I can think of other things.  And of course the software isn't perfect today.  It never will be absolutely perfect.
    Station_two, are you keeping up with the latest Photoshop releases?  If not, I submit that your rhetoric may be falling out of date.
    -Noel

  • Cannot click on sub-menus and notification prompts in Mircosoft Exchange when using Firefox.

    When I access Microsoft Exchange web app from Firefox I've can no longer click on pop-up sub-menus and notifications that I could previous use.
    For example, when I go to empty my deleted items folder and select empty folder, I get this notification (menu 1) that I now cannot click on. All I can do is just hit 'enter' to close the menus without actually making a yes/no input.
    Similarly, when i go to move folders and get this pop-up menu (menu 2), I cannot make any selection, and the 'enter' to close method does not work. All I can do then is close the page.
    I have tried disabling firefox's pop-up blocker but that did not rectify the issue. I can still use the sub-menus in other web browsers so this is a firefox specific problem.
    Any help in identifying the cause and remedying this would be greatly appreciated.

    Many site issues can be caused by corrupt cookies or cache.
    * Clear the Cache and
    * Remove Cookies<br> '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
    Type '''about:preferences'''<Enter> in the address bar.
    * '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
    * '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
    If there is still a problem,
    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    Then restart.
    If there is still a problem;
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift><br> ''(Mac Options)'' ''' key, and then starting Firefox. Is the problem still there?

  • SQL Query to find menus and submenus attached to responsibility

    Hi,
    I am looking for help to find out a sql query to pull out the list of all the menu's associated with each of the responsibilities assigned to users. Please let me know any SQL query to find out menus attached for responsibilities assigned to users.

    835129 wrote:
    I was asked by my lead to list out responsibilities and attached menus and I was asked to submit the output from production. In the metalink note provided by you it was asked to create table collecting all menu id's and I cannot create any tables in production. Apart from this there were 1000's of users with different responsibilities and different menus. I cannot collect all of the users menu ids.
    I just want to list out responsibilities and attached menus. Is that something you can helpout withhttps://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_vl+AND+fnd_menu&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_tl+AND+FND_MENU_ENTRIES_TL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please search the forum for these tables/views and you should get many hits:
    FND_MENU_ENTRIES_TL
    FND_MENU_ENTRIES_VL
    FND_RESPONSIBILITY_TL
    FND_RESPONSIBILITY_VL
    Thanks,
    Hussein

  • Jaws unable to read Menus and menuitems.

    Sorry for posting this query here. But I did not find any satisfactory answer on the Accessibility forum.
    I am developing a java desktop application, and I have to implement the accessibility features in it.
    For starters, I have implemented the accessibility functionality in the menus and the menu items as follows:
    menuItem.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    menuItem.getAccessibleContext().setAccessibleName("New");
    menuItem.getAccessibleContext().setAccessibleDescription("New");
    I am using Jaws 5.0 as my screen reader, and i am using jdk1.4.2_04. I have also installed the access bridge and the path have been correctly.
    But whenever I use Jaws, it does not read anything, except the keys typed like "Tab", "Alt+F".
    Can anyone point out the problem?
    Thanks in advance,
    Arya

    yes, i saw that solution but it is not an option for me, i am using messaging for SMS and emails. For SMS it would be ok to have them on phone memory, but for emails i cannot consider it. I have a lot of emails daily and very fast the phone's memory would be full. Actually this happened before, this is te reason i have the messages stored on SD card.
    Is there a way to store SMS's on the phone's memory and emails on the SD card?
    Regards,
    Cosmin

Maybe you are looking for