Overlapping of objects...

Hi,
I'm doing an application that has a JMenu on the top and a ScrollPane on the rest of the screen. The problem is that depending where I execute that, the items of the JMenu appears behind the ScrollPane, and obviously it's not useful... Yes, I'm talking about the third dimension of the screen. ScrollPane is in the front and doesn't allow to the user to see the JMenu items, when he click on each category...
Anyone can help me?
Thanks in advance

Yes, you're right, i should have provided some code... Here you have (more after the code)
import java.awt.*;
import javax.swing.*;
public class ui extends JFrame
public ui()
super("Test");
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
//initialitzates all the ui
init();
this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);
this.pack();
this.setExtendedState(this.MAXIMIZED_BOTH);
this.setVisible(true);
private void init()
JPanel container;
ScrollPane sp;
JMenuBar menu;
container = (JPanel)this.getContentPane();
//creates the elements to show
menu = ini_menu();
// sp = new ScrollPane();
this.setJMenuBar(menu);
container.add(sp);
private JMenuBar ini_menu()
{ //top bar menu
JMenu file;
JMenuItem open, close, exit;
JMenuBar menu;
open = new JMenuItem("Open a file");
close = new JMenuItem("Close a file");
exit = new JMenuItem("Exit application");
file = new JMenu("File");
file.add(open);
file.add(close);
file.add(exit);
menu = new JMenuBar();
menu.add(file);
return (menu);
public static void main(String agrs[])
new ui();
Please try to execute this piece of code and you will see the screen with a top bar menu running perfectly. But if you remove the double-slash from the line highlighted between /***/ and /***/, you will see that you are not able to see the item from the top bar menu.
Executing this piece of code in various machines made me realise that in old versions like 1.4.0 there's no problem, while 1.4.2 or .1.5.0 is giving me the problem.
Please help.
Thanks

Similar Messages

  • How can a text box overlap an object?

    I have a 1TB late 2012 iMac. Yosemite version 10.10.2 is installed.
    Processor: 2.7 GHz Intel Core i5
    Memory: 8 GB 1600 MHz DDR3
    Graphics NVDIA GeForce GT 640M 512MB
    How can I place a text box overlapping an object?
    I have pasted a photo from an email into a Pages document and I'd like to put on top of it.
    I have tried as many Help topics as seemed relevant, but 'Move Backwards' and 'Move to front' are greyed out.
    I have been confident using this technique with Mountain Lion, but now I'm stuck.
    I am old and self-taught.

    Assuming you have Pages 5.x
    Click on the object > Toolbar > Format > Arrange > Stay on Page > Text Wrap > None
    Now you can move it. It probably was inline and part of the text.
    You can not move it under the general body text however, unless you move it to the Section Masters in which case it will appear on every single page of that Section.
    You will need to create a Textbox to put your text into and move that on top of the object.
    Peter

  • Strange rectangle overlapping all objects in Illustrator CS6

    Mac OS 10.6.8
    A strange rectangle overlapping all objects in Illustrator CS6
    http://s14.directupload.net/file/d/3081/orzhlvx8_jpg.htm
    does anybody have an idea how to get rid of this?
    thanks in advance!

    Yes, I too get this. Although mine is a different shape and a different location:
    (By the way, can you just insert your image file within this box, because we cannot see your problem unless we go to your location which has a pop-up ad.
    Here is what I am getting (and which I have already posted, but received no replies)

  • Dynamic table overlap other objects!!!

    Hi everybody
    I have created a dynamic table with Add Row Button
    Please can anyone tell me how to avoid dynamic table overlap the below objects when multiple rows are created?
    what I wish is that the table bumps everything on his way just like MSWord wrapping option
    please provide a flash tutorial if you can, cause many people ask about this issue

    Hi,
    Use flow layout in order to avoid overlapping of table on other objects. This flow layout is to be set on the parent container (form/subform) of the table. Put the other objects too into the same container. It will cause the dynamic resizing of the container each time the new row is added.
    Thanks.
    Abhinav

  • Overlap to objects, both black, but in the overlapping region color is white

    This has bot to be possible, but for some reason my brain just ain't working.
    I've got to black objects, let's say circles, they overlap. IN the overlapped portion I want my color to be white, is that possible?

    The basic idea is based on the fact that black is white and white is black.
    So, do the following:
    1. New document
    2. On Layer 1, draw a grey filled rectangle
    3. Create a new layer above Layer 1
    4. On Layer 2, draw two white filled circles
    5. Target Layer 2 (click the circle on the right handside of the Layer's name)
    6. In the Appearance Palette, add a new black fill to Layer 2
    7. While this new fill is highlighted in the Appearance Palette, go to Effect > Pathfinder > Exclude
    8. Now, create any calligraphic brush and apply it to a white stroke which you have drawn on Layer 2, overlapping the white, no the black circles.

  • Overlapping coloured objects

    I am using CS2 on Windows XP professional.
    I want to create a graphic in Illustrator which I can use in a document in InDesign. I want to combine simle objects filled with different colours and where they overlap I want the colours to blend. Then I want the graphic to sit on another background colour (but not blend with it) in InDesign. I have tried different ways of doing this without success. I know it has to be simple - but when you know how.
    I would be grateful if you could point me in the right direction.
    Thanks
    Frank

    Hi Harron. When I was writing the last post, I realised it was somewhat clumsy. What I meant was that each object in the graphic has only one colour; but each object has a different colour. Sorry to be obscure. I hope you enjoy your drink - single or different.
    Meanwhile, back at the ranch, I think I have achieved what I want. I created the graphic in Illustrator. Grouped overlapping objects and used Effects>Pathfinder>Soft Mix and chose a blend of 50%. That has produced the effect I wanted. I then placed the graphic in InDesign and when I select View>Overprint Preview, the overlapping colours look fine and they are not affected by the background colour of the page in InDesign.
    I'm happy with what I've done. But I would be grateful if you would let me know if you can see a problem with it. I don't want to get the job back and find it is somewhat less than I was looking for. A possible problem I can imagine is not achieving a clean fit of the colours where they join and overlap - sometimes I notice in pubications a tiny bit of white or other colour where two colours join.
    Many thanks for your help. It has been a good exercise for me as I learnt more about Pathfinder which I have not previously used in this way. I was also able to successfully break up the objects and colour the resulting pieces - as suggested above by Philip.
    Thanks
    Frank

  • Overlapping audio objects

    after making a new autoload, using logic setup assistant to set up number of tracks, etc. I get a nice fresh audio setup, but when i start to use the audiotracks or audio intstruments, the audio objects gets a little wider, so it´s overlapping the next track/instrument a little bit. It doesn´t help to use the "cleanup" function in the audio/envioment window. Does anyone know this strange and anoying behaveior ? Maybe a work around ?

    the only way to have it work without space is if you switch the cables off
    because it counts the cable as well so switch the cables of then it'll without no space
    i got 2x23 inche monitors and both are on 1680 x 1050 Hz
    so on the second monitor i have just the mixer board window or the environment on it
    and doubled up my mixer,
    so the top row is 64 audio and 8 AUX
    and bottom is 32 instrument and 4 Output and 16 Bus
    and and i align it with the cable on so space doesn't really kill me, because the more you add plug-ins the more the channels become bigger
    unless if you have time to realign or the time when recording then switch the cables off
    stash

  • Overlapping Objects

    All,
    I am working on code which differentiates bright objects in a camera's field of view.  Programming in LabVIEW, I have so far been able to detect and enumerate separate objects using LabVIEW's built in function.  My next challenge will be to differentiate between overlapping bright objects., objects which will cause contiguous bright pixels with no dark areas in between the objects.
    I can identify static points which will always show one specific object, and I can always take my light intensity measurement points at these static points.  Is there a way that I can programatically have LabVIEW divide a group of contiguous bright pixels into two or more separate objects?  Or will LabVIEW's built-in functions always identify a group of contiguous bright pixels as one object?
    If I cannot program LabVIEW to split contiguous bright pixels into multiple objects, I can figure out another way to code the functionality I want.  But if there is a way to have LabVIEW return an object array that already has differentiated the objects as I want, it would make my life a bit easier.
    Thanks in advance.

    I was playing around with Skeleton, and I don't think it will work for me, but I could be wrong.
    I am attaching an image that approximates what my cameras will be seeing.  What it shows is four equally-sized mirrors tilting up from the ground. 
    Any thoughts as to how I could get LabVIEW to differentiate these into four different objects?
    Thanks.
    Attachments:
    Overlapping Mirrors.png ‏4 KB

  • What are the order of interactive objects

    If you have two interactive objects on top of each other what are the rules regarding which shows up on top.
    for instance if you have a MSO slideshow and you try to put a button on top it will disappear behind the MSO on the iPad, I can work round this by putting the button inside all states of the MSO
    But are there any guidelines about which form of interactivity out ranks another?

    In most instances, the z-order determines which overlay stays on top when overlays are in a stack. In your example, you mention that when you place a button on top of an MSO, the MSO covers the button. That's not my experience. In a quick test, I overlapped buttons and an MSO, and I moved the top buttons to the front and the bottom buttons to the back. Here's what I got:
    In this example, DPS honors the z-order. You can interact with both the buttons (even if they're hidden) and the MSO.
    When you overlap interactive objects such as image sequences, inline videos, and slideshows, the z-order of the source objects determines which objects move to the front. Activating an overlay brings it to the front of inactive overlays. If multiple overlays are activated, the z-order determines which object is in the front.

  • Moving objects and other shapes or groups of shapes in Illustrator to exact placement!

    HI,
    I am trying to move objects with the mouse to an exact place(grouped objects) within my document, how do i go about doing this?
    I have snap to point turned off, but everytime i try to click and drag to either overlap and object onto another, so it sits in line and that way i can delete remaining shapes around this, it wont let me, i move it, and then it quickly moves like half a cen centimeter to the left???
    I have zoomed in and tried doing it at this view but still the same.
    It is very frustrating, does anyone know why this is happening, or could help us.
    Also snap to point is not turned off and it's not the first time this has happened!
    Thankyou so much in advance!

    GaNa,
    I jump of half a centimeter is vast.
    What happens if you move an object with the arrow keys, just one hit?
    It could be a matter of corrupt preferences.
    You may try the following and see whether it helps:
    1) Close down Illy and open again;
    2) Restart the computer;
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup;
    4) Move the folder with Illy closed;
    5) Look through and try out the relevant among the Other options, especially the usual suspects in item 7.

  • Should I spend many hours in Illustrator puting objects on many separate layers before importing?

    Very complex overlapping of objects in this project. My adobe Illustrator art has many hundreds of objects on only about 5 layers. When I imported into Flash I can only get to individual objects by breaking apart the layers. The art is very complicated, interlacing of two human figures I didn't design but I copied from ancient 500BC Greek pottery art for an historical film I'm making.
    I labeled every object in Illustrator but apparently loose that while importing into Flash. Should I spend hours more in Illustrator putting everything on separate layers that needs to be used in separate layers for overlapping before importing to Flash? Objects in Illustrator automatically appear on a separate line but I guess that is not the same as a separate layer when you import into Flash, right? I am concerned as to how I will be able to make some of these limbs or clothing with all the objects associated with them be moved into just one layer for the overlapping of these things is very complex and I am certain it will take forever to figure out how to rearrange for proper overlapping order if I make a lot more layers, if it is even possible without a work around in some cases. Frankly I am having difficulty with the concepts of objects in Flash vs how layers work in software like Photoshop.  MAC OSX FLASH CS6.

    Look closely at your import settings when you import your AI file. Unless you flatten the illustrator layers into bitmaps, none of the objects will be lost. If you double-click what seems to be one object in Flash, you will find that all the component parts are still in there.
    However, keeping things organized with layers is good practice in Illustrator, whether or not you're using the product in Flash, so it might be a good practice to cultivate longer term.

  • Text Wrap not working in Muse (CC 2014)

    I'm attempting to wrap text around a slideshow.  I have already inserted the slideshow in the text box, used the wrapping options to justify to the left, with the text running to the right and beneath the slideshow.  In the design layout, it shows up perfectly.  However, in the preview tab as well as previewing on the web, the wrapping does not show.  The slideshow simply appears over the text, with the text running behind the slideshow.  Any ideas on how to fix this problem or is it simply a bug that Adobe needs to eventually correct?  Thanks for your help!
    All my best,
    Rob

    Hard to tell from the screenshots. A couple nuances of text wrap that may be unexpected:
    1) If you select an item with text wrap and move it up or down in Design view, that will move the item but will not change the area that is knocked out for text wrap purposes. Thus text can overlap on object that has text wrap applied if the item has been moved up or down while in the text flow.
    2) Where an object is inserted in a flow is important. Generally it will provide the most predictable behavior if the graphic is inserted at the very start of a paragraph. If a graphic is inserted in the middle of a paragraph and text wrap is applied, exactly where the graphic will appear will be dependent on how the browser line breaks the text of the paragraph before where the graphic was inserted. A change in line breaks can result in the graphic appearing a line higher or lower in one browser versus another, since every browser has it's own text layout engine.
    Assuming neither of the 2 points above fit what you're seeing, it's probably most expedient to send us the .muse file along with a link to this thread for context at [email protected] and a note to let us know where to find the problem situation within the file so we can see the exact situation and settings for what you're encountering. If the file is larger than 20Mb you'll want to send it using a service such as Adobe Send, WeTransfer, Dropbox, etc. Thanks.

  • Termination Issues in VL01N reference with Sales Order

    Hi Group,
    we were facing issues while creating the Delivery(VL01N) with reference of the Sales Order and getting an Express termination message as under:
    'Enter a Batch'.
    we found information with tcode 'SM13' with the Function module 'RV_MESSAGE_UPDATE'.
    kindly provide your valuable inputs.
    Regards,
    Vishnu

    There can be various reason for these kind of termination. Normally this due Number range overlapping or Object requested is currently locked by some other user. If you have used TCode SM13. Then you might have checked the reason why the 'Termination' Message appeared. So, there you can check ABAP run time errors is cause. If you can post :
    - Status
    - Class (mandatory)
    - Number (mandatory)
    - Error Details
    In that case, we will be in better position to assist you.
    Regards
    JP

  • How can I test if a given DisplayObject is obscured by any other DisplayObject on the same stage?

    I'm trying to write a function
        internal function isObscured(o: DisplayObject, p: DisplayObject): Boolean;
    which tells whether the given object o is partially or completely obscured by the object p. I already tried using hitTestObject and hitTestPoint; the latter would actually do what I want if I tested every point in the bounding rectangle of the object at hand - not very efficient. I also tried using setChildIndex but it doesn't seem to help either since it's possible that an object isn't obscured even though it does not have the largest child index.
    My current approach is to test whether any bounding rectangle of the objects with larger child indices than the object at hand intersects with the bounding rectangle of the object at hand, however I suspect that this will only work for testing whether any sibling overlaps my object. I also looked at the 'depth' property of UIComponent but it seemed from the same issue (the depth is relative among all siblings).
    Does anybody know whether there's a better way to check whether a Flex control is obscured by another?

    Some other alternatives for testing:
    Use the rectangle approach you mentioned, just make sure you call localToGlobal() on each of the points (rectangle coordinates) before doing the check. That will make all of your comparisons happen in the stage's coordinate system rather than each display object's parent's coordinate system.
    Another option that may work is DisplayObject.hitTestObject():
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayOb ject.html#hitTestObject()
    Finally, I found this  link that has a hitTestRect() method that may help you:
    http://www.as3gamegears.com/misc/actionscript-toolkit/

  • Master Slide issue - drag and drop alt slide over theme slide

    Keynote on my MacPro: Where before on the previous version I could in Master Slides drag and drop an alternative look over a theme slide to change that slide only and no affecting the entire presentation which was most useful, now that seems no longer an option unless there's something I can't find to do that. When viewing Master Slides now you cannot see the presentation you're working on. Previously I would set up several slides with different looks and where needed drop that look over a slide and it would override the theme slide without all slides being affected. Qny thought guys? Barry

    Although I have been answering quite a lot of questions about Drag&Drop functionality (not a widget), you are the first to mention such problems.  Personally I never had problems, only when not respecting the design of the interaction or doing something stupid. If you are the only user to have such experience (at least for what I hear in these forums and on social media), I don't see why an upgrade should be expected? Did you log the problem? Are you sure that the project is not corrupted?
    The jigsaw learning interaction is pretty simple, also limited, don't know what are your problems there?
    Are you sure that all objects used in the D&D (drag sources and drop targets) are visible in output. It is a bit confusing in CP8 because the eye icon is used both for visible in output for objects in Properties panel, and for showing the links in D&D in the D&D panel. Can you see the links? Did you avoid overlapping of objects? Did you not rename an object after creating the D&D interaction, because that will break the link from/to that object? I mentioned this in my last article: Drag&Drop tips - Captivate blog
    I am just trying to find out what is going wrong, bit curious about this rare case.

Maybe you are looking for