JMenu with RIGHT_TO_LEFT Orientation

Hello,
I have a JFrame contains a JMenuBar and it's menus, My application direction is RIGHT_TO_LEFT, I changed the direction of the JMenuBar, JMenu, JMenuItem, to all the Heirarchy of the menus, and I got the required GUI.
Unfortunately, when the direction is RIGHT_TO_LEFT, and lets say you have the following menus structure:
File -> Open
Print -> Printer Setup
Page Setup
Save
Exit
When the orientation is RIGHT_TO_LEFT, The JMenu 'Print' expanded to left side only when you press the RIGHT arrow on the keyboard !
I extended the JMenu and JMenuItem classes and overrides the
'processMenuKeyEvent(MenuKeyEvent e)' method and I got the required thing, but I have the following questions:
1. How can I determine the menu that currently have the selection or the focus.
2. I have problems if there is nested menus as print -> Printer -> Type ....
Is there A general solution such as I can apply it to the JFrame as an example and it will reflect it on all components that it holds ?

Thanks for your answer.
So there is no solution for that bug (except implementing the ComboBoxUI)?
As I found bug is in JScrollPane that used in Popup. When a JScrollPane's orientation is set to RIGHT_TO_LEFT it scrolls to the left but it is expected that it should scroll to the right.
Edited by: gilas on Aug 2, 2008 3:18 AM

Similar Messages

  • Creating pdf-file from multiple files with different orientation

    How do I put together two files with different orientation in the page set up so that the lying A4-format is standing up in the new pdf-file?

    lophelia wrote:
    How do I put together two files with different orientation in the page set up so that the lying A4-format is standing up in the new pdf-file?
    First I've underline a Phrase in your Question did you mean underlying A4-format?
    Are both PDF Files created with A4-Format? If yes then:
    Did you shift orientation to Portriat Format for the item(s) that you need, such as a Chart or an excel Document? If so:
    Then when the documents are meged  They should print correctly.

  • JMenu with text and icon

    Is it possible to create a JMenu with text and an icon where only the icon brings up the menu and the text behaves like a JMenuItem? How would you do this. Right now I have a JMenuItem next to a JMenu where the JMenu only has an icon. The problem with this is it is seemingly impossible to get them as close together as I would like. Any suggestions for solving the spacing issue would be equally helpfull. Thanks.

    From your previous thread you are aware that JMenu and JMenuItem both extend AbstractButton. So, you should be able to play with the borders and margins:
    setBorder(null);
    setMargin( new Insets(0, 0, 0, 0) );

  • Can all Acrobat Readers open files with mixed orientation pages (portrait and landscape)?

    Can all Acrobat Readers open files with mixed orientation pages (portrait and landscape)? If not, which versions can? Thanks!

    Hi Sami,
    You can open files with mixed page orientations in all Adobe Readers There is no such constraint on opening files with different page orientations in Adobe Readers.
    In case if you have any other query please let us know. We will be happy to assist you.
    Regards,
    Aadesh

  • How do I change the print orientation for PDFs with mixed orientation pages?

    I'm sure this is a fairly basic and easily solvable issue, but I've been searching for a solution and can't find one for the life of me.
    The issue: I'm printing a PDF that will be bound book-style, and the file contains pages with mixed orientations (both portrait and landscape). When I print the file, the landscape pages point the wrong way, to the left of the spine, when they should be pointing down to the right of the spine. I've adjusted the print settings for multiple test rounds, and nothing seems to work. Here's a visualization of the problem (apologies for the bad Paint art):
    What the book is doing now when it prints:
    What I need it to do:
    Here's the caveat: I cannot just rotate all the landscape pages counter-clockwise in Acrobat for ease of printing, because it would remove the ability to scroll through the file quickly in Reader or a Web browser, and the same file needs to be both easily readable digitally AND print correctly.
    Is this adjustment a print setting? Is this a tool I'm overlooking within Acrobat? Is this outside the scope of what is adjustable? All advice is welcome, and please feel free to ask any follow-up questions if I explained my problem unclearly.

    If you are trying booklet printing, try to rotate the pages as needed before you print to the booklet. If you are print booklets without using professional imposition software, then Quite Imposing or Quite Imposing Plus should be considered. I believe they offer a demo version.

  • Module pool  with object oriented programming

    can anyone send me links for module pool with object oriented programming.

    hi,
    some helful links.
    Go through the below links,
    For Materials:
    1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
    2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
    6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
    7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
    8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
    1) http://www.erpgenie.com/sap/abap/OO/index.htm
    2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    <u>Sample std pgms.</u>
    ABAP_OBJECTS_ENJOY_0           Template for Solutions of ABAP Object Enjoy Course
    ABAP_OBJECTS_ENJOY_1           Model Solution 1: ABAP Objects Enjoy Course      
    ABAP_OBJECTS_ENJOY_2           Model Solution 2: ABAP Objects Enjoy Course      
    ABAP_OBJECTS_ENJOY_3           Model Solution 3: ABAP Objects Enjoy Course      
    ABAP_OBJECTS_ENJOY_4           Model Solution 4: ABAP Objects Enjoy Course      
    ABAP_OBJECTS_ENJOY_5           Model Solution 5: ABAP Objects Enjoy Course      
    DEMO_ABAP_OBJECTS              Complete Demonstration for ABAP Objects          
    DEMO_ABAP_OBJECTS_CONTROLS     GUI Controls on Screen                           
    DEMO_ABAP_OBJECTS_EVENTS       Demonstration of Events in ABAP Objects          
    DEMO_ABAP_OBJECTS_GENERAL      ABAP Objects Demonstration                       
    DEMO_ABAP_OBJECTS_INTERFACES   Demonstration of Interfaces in ABAP Objects      
    DEMO_ABAP_OBJECTS_METHODS      Demonstration of Methods in ABAP Objects         
    DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen
    Rgds
    Reshma

  • Flatten/Assemble XDPs with Different orientations

    I was able to flatten XDPs into a single PDF successfully using the invokeDDX.
    The issue that I am facing now is while merging 4 forms together, if the 2nd or 3rd form happens to be in Landscape orientation, all rest of the forms also convert to the Landscape orientation. Also, when I try printing it, the Printer says the Printer Size did not match Paper type or something of that sort. Following was my DDX:
    <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
      <XDP result="MyXDPResult">
        <XDP source="sourceXDP1"/>
        <XDP source="sourceXDP2"/>
        <XDP source="sourceXDP3"/>
        <XDP source="sourceXDP4"/>
      </XDP>
      <?ddx-source-hint name="sourceXDP1"?>
      <?ddx-source-hint name="sourceXDP2"?>
      <?ddx-source-hint name="sourceXDP3"?>
    </DDX>
    How do I get forms with different orientations to assemble and print? Would appreciate any help in this regard.
    Thanks,
    Saurabh

    dreaming of weaving wrote:
    > Allow Tool Recording ( You used no brush type tool to be recorded and this option is only useful if all document processes are the same size and resolution.  This feature is hardly ever useful. It was poorly designed and implemented by Adobe.  Their Plug-in ScriptListener even disables this feature if you install the plug-in )
    > Create new Set
    >Create new Action
    > Click record
    > add vertical "© name" to a new layer in PS file (if you are using the text tool here and want to process different size image you have a problem here)
    > position it
    > Layer > Flatten Image, (no need to flatten you can save a layered or flat file by choosing the proper file type.)
    > File, Save, Close image. (no need to save or close if you are going to  use the image processor to batch process images.  The Image processor will open the files run your action a save the file types you set up. When all the file types have been save for a image. The Image processor will close the image and move on to the next image and repeat the process till all image files have been processed.)
    > Stop recording
    It seems you new to "Actions" .  You may fine my crafting actions package useful.  It even contains a sample watermarking action that can watermark any size document with watermarks. The Action show three methods.  Custom Text Layer,  Shape layer and Custom Loge Layer.
    Crafting Actions Package UPDATED May 2, 2014 Updates some text and added StampExif Action and Script.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Importing photos into Camera Roll with wrong orientation

    I have been using Olympus OI-share app to import via WIFI the photos from my camera (Oly EM10) into ipad mini retinas- saving into the Camera Roll successfully. However ever since I have upgraded the IOS (may or may not be the cause), when I import the photos, the orientation of the photos were messed up, specifically Portraits are being saved as Landscape. It used to work fine but its a consistent problem now and affects all the portraits I have recently taken. I have reinstall OI-share app and that didn't help. I have tested the same app on iphone 5S and it is working perfectly. The problem seems only to appear in my ipad mini.  I am not sure if there is a settings somewhere that affects this.  The problem is made worst as even after I use the ipad photo edit function to change the orientation, this does not change the orientation of the same photo in my photostream.
    Anyone whom has any experience/idea about this - please help!

    Try
    iOS: Device not recognized in iTunes for Windows
    I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or               
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    New cable and different USB port?
    Runs this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Try on another computer to help determine if computer or iPod problem
    If you have Win 8.1 and the problem started after updating to the latest iTunes version then you seem to be out of luck since there are problem with the latest iTunes version and win 8.1

  • How to print envelopes with correct orientation?

    Hi all,
    This one has been driving me mad and, despite many searches for help, just can't find a solution. As someone who knows their way around most IT related problems it is also very frustrating!
    The problem: How to print a DL envelope using Pages (or Word come to think about it) so that the text is positioned on the envelope where you would expect it to be.
    Printer: Epson Stylus Photo R800 - although I would guess this happens to any printer.
    Tried: I have selected the DL Envelope setting in page setup (11x22cm)and selected landscape. The envelope is positioned in the printer so that the smaller side goes in first (too wide to go in the same way a page of A4 would go). If I select print then the address details are printed at 90° to the envelope. If I choose portrait then the whole thing is messed up with the text flowing down the page (which is now shown as 11x22).
    Strangely, if I do this in Word but go to Print Preview first then print it is fine.
    Best option for me is to use Address Book though and click on the 'Orientation' tab, select the landscape option and everything is OK. Pain to have to use this each time I an envelope though.
    I have tried everything in pages including leaving the page set to 11x22 and trying to rotate the text but this is messy and have not found an easy way to rotate text in Pages as yet!
    Has anyone a solution to this or am I simply missing something that is glaringly obvious?!!
    Thanks all, Mike

    Michael Mackay wrote:
    I have tried everything in pages including leaving the page set to 11x22 and trying to rotate the text but this is messy and have not found an easy way to rotate text in Pages as yet!
    It's really easy and it's perfectly described in the Help in the chapter entitled: *Flipping and Rotating Objects*
    Create a Text Box (which is an object).
    Type what you want in it.
    Metrics Inspector > use the rotate button or enter directly 90 in the Angle field.
    We may also do that without the Inspector.
    Select the Text Box Put the cursor on the top_right handle
    Press Shift + cmd while we drag the handle to rotate once of 45°
    Repeat the process 45° + 45° will give a 90° rotation.
    Yvan KOENIG (from FRANCE dimanche 13 juillet 2008 15:59:49)

  • Problem with dual-orientation scrolling pages

    I am trying to load two ID documents as an article for a DPS folio.
    One document 'xx_h.indd' which is 1024W x 1060H, the other 'xx_v.indd' which is 768W x 1200H.
    When I try to upload the two orientation by Folio Builder>Add article, then select "Import Multiple Articles" and the folder containing the two files I get a warning:
    Content generation error.
    Unable to find files to be imported as article.
    If I import open articles the _h is imported as a portrait article.
    I have been successful with this for other articles in the folio where the landscape article has a height less than 1024 px.

    Bob,
    I tried importing as a single article but I get an error message:
    Content generation error.
    [Error: The page size aspect ratio must match the folio aspect ratio.]
    Although the horizontal page is actually portrait aspect, being higher than wide, I thought that the file name ending in '_h' would correct that. When I set the width and height in document set-up even though I set it to landscape orientation it defaults back to portrait when I save the file. I seem to have two portrait orientation documents in the folder?
    This has worked for me when the _h.indd was still landscape, say 1024 x 825 px.

  • Duplex printing issues with landscape orientation

    I have read through all of the previous questions, and can't seem to resolve my problem here.
    I am using Acrobat 8 Professional (8.2.2).  I have created a PDF from a Powerpoint presentation.  I need to be able to send this to someone else and have them view it on screen with the correct orientation, and also duplex print it correctly, as all of our company printers default to duplex printing (to save paper).  However, since the person who prints it is going to staple it in the upper left hand corner, it really needs to be duplexed to open along the left edge (the short edge of the paper).
    When I first bring up the print screen the document has the incorrect orientation; i.e. it shows a thumbnail of an 8.5 x 11" page in portrait orientation, and my content is reduced in size to fit the 8.5 width.  I think this is really the issue at hand--for some reason, even though the page is set up in Powerpoint as a 8.5x11 landscape oriented document, when it exports to the PDF format, that orientation doesn't hold.
    Anyway, it seems that no matter what settings I try to adjust, it doesn't seem to work.  I have toggled "Auto-Rotate and Center," I have toggled the duplex settings in the PDF document properties.  I have toggled the duplex print settings on my printer driver between "Open to Left" and "Open to Top."  None of it seems to make any difference in the final printout--basically what comes out of my printer is a document that is rotated to print out as if it was a portrait page, and is bound on the left edge (so each second page is printed upside down, when I am looking at it in landscape orientation).
    The only work-arounds I can think of would be to rotate every other page in the PDF so that when it printed it printed correctly.  However, then the PDF would not be readable on the screen.  I could generate two separate versions of the PDF, one marked for print, and the other for viewing--but that is a real waste.
    Does anyone have any suggestions here?  I am looking for a way either to get the PDF software to "understand" that this document is a landscape document from the get-go (then it SHOULD work to duplex print correctly with the "Open to Left" setting), or maybe create a custom print setting for this document that allows me to rotate every other page as it is printed, but that doesn't rotate the pages on the screen.
    I hope this is all clear...and that someone can offer some advice.
    Thanks!
    Melise
    P.S.  Just in case it makes any difference, I am running Windows XP Professional and am using the Microsoft Office 2007 software package.  Because the company has multiple different printers throughout the company, I need a solution that will work without regards to the specific printer driver.

    I am having the exact same issue.  The setting of "Auto-Rotate and Center" has no affect.
    Do I have to rotate the odd pages 180 so they are upside down in the PDF, but print correctly?
    I am using Acrobat 9 Pro V. 9.3.3 in Win 7 Pro 64, to HP CP6015XH (colour laser).

  • ExternalInterface.call problem with object-orientation

    Hi
    I am using an swf inside a PDF. In a PDF-context the ExternalInterface-class works much the same as it does within a website. So far calling a function in the document-script works.
    The thing now is, that I really try to use an object-oriented approach as often as I can. In this case I have a function I could call using
    var jsCaller:Object = ExternalInterface.call("myFunction",parameters);
    This works as expected.
    However, I have now made that function a method in an object, so I can access it within JS using dot-notation: myCoolObject.myFunction(); This works as well, so the problem is not the function itself. However, the call
    var jsCaller:Object = ExternalInterface.call("myCoolObject.myFunction",parameters);
    does not work.
    This means there's either something I'm missing, or it's a limitation of ExternalInterface, or it's a limitation of externalInterface in a pdf-context.
    Anyone to enlighten me?

    If EI calls eval it should be able to resolve the object-path. However, this doesn't seem to be the case. Also note that my parameter is an array, so this probably wouldn't work, even if the syntax did.
    Anyway, I tested your syntax in my PDF, and it showed the same behaviour as before (i.e. the function in which the EI-call was placed could not be executed, and acrobat claimed there was no such function). It didn't work with my normal function, and not even with a simple console.println-statement that way. So in PDFs it definitely doesn't work like that.
    But thanks for the suggestion!

  • Images with "Portrait" orientation are stretched out

    I've taken photos with "portrait" (vs landscape) orientation with my camera then imported them in iPhoto. Then, I've rotated them in iPhoto so that they display with the correct orientation (i.e vertically), and everything so far looks OK.
    However, when I try to build up a slideshow with iDVD, those portrait oriented photos are stretched out sideways in order to fill out the displaying frame (I would have expected them to show as in iPhoto with a black band on each side) .
    I've read in the iDVD Help that this may happen whenever landscape AND portrait pictures are mixed together in the same slideshow. So, I carefully isolated each set of photos but with no success.
    From what I've read in the iDVD forum, it seems that this is a recurrent problem no matter which iDVD or iPhoto version is used (I use iDVD 3 and iPhoto 2).
    Thank for any help.
    1.8 Ghz PowerPC G5   Mac OS X (10.3.9)  

    Well, I tried to use iDVD without reading the tutorial and I confused the drop zone and the slideshow.
    Actually, when you drop more than one photo into the drop zone, the width over the height ratio is determined by the first picture. Whenever the first photo is landscape oriented, any subsequent portrait photo appears stretched out. Conversely, if the first photo is portrait oriented, then the following landscape photos will be squeezed.
    In any case, the slideshow itself is always displayed correctly.

  • Issues with Photo orientation after syncing IPad

    Just wondering if anyone has had issues with the ipad changing the orientation of photos following syncing ipad with itunes. What I have been experiencing is that although the photo is in portrait orientation in iphoto on the imac, this same photo after syncing of the ipad with itunes on this same imac machine, the photo when opened up on the ipad is in landscape orientation. Have consulted with senior advisors at apple but not sure if this is an iphoto problem or an itunes/ipad sync problem? seems to me that whatever the orientation of the photo is in iphoto, that when you sync the ipad the photo should transfer with the same orientation. anyone else having this problem?

    There have been several posts here and on the iphone site about this.
    The jury is still out what the fix will be. Some posts say it's a problem with the metadata and the orientation data contained there-in. I can not confirm that.
    I do know that when I take a landscape screen snap, the orientation is wrong when I email or upload the photo to my computer.

  • Postscript generated with incorrect orientation

    I am trying to print a booklet to a postscript file from InDesign. The booklet is letter-half and 8 pages (5 spreads) with all pages on a portrait orientation. For printer I select Postscript which greys out the ability to pick paper size or orientation. When I check the preview the orientaton looks correct (2 portrait half pages side by side on each  sheet of landscape paper) but when I generate the postscript file the orientation is wrong (2 portrait half sheets side by side on each  sheet of portrait paper). I have been able to verify that the incorrect orientation was output when the Postscript was written by viewing the file using several different apps on different platforms.
    Running InDesign CS6 8.0.1 on OS X 10.8.2

    Here are some screenshots that may be helpful -

Maybe you are looking for

  • Sender FCC

    Hi, I am doing a file to idoc with sender file with fixed length and get the below error, I have more fields but i have posted only few under row, should I be having one more node above the row? as per Michal's blog, please help /people/michal.krawcz

  • Long Text of VD53 Transaction

    Hi experts        How to get long text in VD53 transaction Using READ_TEXT Regards Manoj

  • Webkit exploit: Arabic text issue

    (Yes, I know about apple.com/feedback and I know, that Apple doesn't read discussions on this forum) I can't take this anymore. So, let me tell you: there is an exploit in WebKit (Safari, Chrome), that can crash the browser or the page when trying to

  • Want a Simple Way to Insert a Simple Picture

    I'm having trouble inserting a simple picture into a pages document. I don't care about anything fancy, the document is an academic paper and I just want a simple diagram with a few boxes and arrows. No colors, animation, bitmaps, etc. I created the

  • PCD search using TREX SP16

    Hi All, I am trying to search for portal iviews, pages & roles using TREX. I created the index & assigned the PCD folder (I have done all the pre-requisites for PCD search).... Then when i opened the Index Administration page, the status for the inde