How to put JInternalFrames on top of each other?

I'm building an application in which I use a desktopPane. Within this desktopPane, I create an internal displayframe with buttons, textfields etc. With one of those buttons, the user calls another internalframe, the "database connection frame", to make a connection with a database. As soon as the second internal frame is called, the displayframe is being pushed "down". Is there a way to show the database connectionframe on top of the displayframe?
Here is a piece of the code
In the contructor:
desktop.putClientProperty("JDesktopPane.dragMode","outline");
setContentPane(desktop);
createDisplayWindow();
desktop.add(displayWindow);
makec.addActionListener(this);
makec is a button that is used to show the database connection frame. Here is the code for that button
if (dbconnectionWindow == null) {
createdbconnectionWindow();
dbconnectionWindow.addInternalFrameListener(this);
desktop.add(dbconnectionWindow);
dbconnectionWindow.setLocation(
500/2 - dbconnectionWindow.getWidth()/2,
350/2 - dbconnectionWindow.getHeight()/2);
dbconnectionWindow.show(); //necessary as of 1.3
Thanx, debeumers

I'm not sure if that's what you're looking for, but you can display values by using markerText tag:
<dvt:barGraph...>
  <dvt:markerText rendered="true">
      <dvt:y1Format>
        <af:convertNumber type="number"/>
      </dvt:y1Format>
      <dvt:graphFont id="graphFont4" size="20"/>
  </dvt:markerText>
</dvt:barGraph>
About the other question, have you tried to use unicode characters? Right arrow, for example is "&#8680;"

Similar Messages

  • Putting MacBooks on top of each other puts them to sleep?

    I have a few MacBooks. When putting my macbook pro on top of a old shut macbook it put my screen to sleep on the MacBook pro. I thought I had killed my laptop so I moved things around and when I started it came back to life. I moved it and it died again. It looks like when the lids are lined up the computers sleep.
    Anyone else seen this?

    actually the very likely (to be sure) point of shut off (as Tuttle jogged my memory here at 1230am) is the magnetic REED SWITCH in the bottom chassis of your Pro, it is being tripped by the magnet in the LID of the bottom macbook Pro
    see the indicator as show at bottom left and up one of the reed switch which magnetically induces sleep mode (or the macbook Pro thinks the lid is closed when it is not)
    Either way the advice is the same, ...dont use a macbook as a coaster for another macbook
    a reed switch is a sealed glass tube having ferrous contacts inside it..
    these reed strips are stiff such that in the absence/presence of a magnet nearby it opens/closes thereby breaking/completing the circuitry

  • Safari 5.1 now is garbled with many of the sites having lines on top of each other. Is any one else having that issue? If so, how did you resolve it? Thanks in advance for any help.

    Safari 5.1 now is garbled with many of the sites having lines on top of each other. Is any one else having that issue? If so, how did you resolve it? Thanks in advance for any help.

    "Did you make the .psd file with a transparent background (checkerboard) in Photoshop? And when you placed it in AI did you choose the top option Convert Photoshop Layers to Objects?"
    Yep, and it still didn't work.
    But I figured what I did wrong: I was selecting both the text and the heart, and then I was doing the whole Object>Wrap Text>Make thing, as opposed to just selecting the heart and doing it. Once I did it, I moved the heart around on top of the text, and it "made room" for the pic, wrapping itself around the heart.
    Thanks so much, and thanks A MILLION for being so patient.
    Jeez, when can I get some textbook to learn all the intricacies of Illustrator?

  • New windows don't open on top of each other in Firefox. How can I make that happen?

    New windows don't open on top of each other in Firefox. How can I make that happen? That is, every time I open a new window, it won't open on top of the old window, and instead is positioned to the right of it. I'm on a mac. Please help.
    == This happened ==
    Every time Firefox opened
    == Today

    I see. I'm not aware of how to fix this in Firefox. Usually you want to tweak your Winow Manager preferences for opening new windows.
    Example: sawfish preferences for Linux.
    Since Mac OS X doesn't have any preferences, you have to use Applescript or another technique. I found [http://amitp.blogspot.com/2006/08/mac-os-x-window-management-spooky.html Spooky], maybe there are others. I haven't tried it, but here is the [http://www.doernte.net/spooky.html Spooky Download and Description].

  • Pictures on top of each other

    Hi all!
    I have a question of how I place several images on top of each other. I have an application and I place a background image in it. Then I want to have images "on top" of the background imgage. All images is in the format .png, which can be transparent.
    My problem is that when I add an transparent image, I dont see the background image through it. Instead I get the default background color (something grey/blue).
    Can somebody help me with:
    1) How do I put the background picture in my JFrame (I'm not sure I'm doing this correctly)
    2) How do I display .png images in the JFrame so that I see the background through it?
    Regards,
    Andreas

    I wrote example for AWT because in SWING it can be done very easy. Run this code, it runs fine. Use only your image files.
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.image.BufferedImage;
    import java.awt.*;
    import java.awt.event.*;
    public class ImageTest extends Canvas implements WindowListener {
    public static void main(String[] args) {
    Frame frame = new Frame("Image testing");
    ImageTest instance = new ImageTest();
    frame.add(instance);
    frame.addWindowListener(instance);
    frame.pack();
    frame.setVisible(true);
    public Dimension getPreferredSize() {
    return new Dimension(256, 256);
    BufferedImage backgroundImage;
    BufferedImage alphaImage;
    void initImage() {
    Image img = getToolkit().createImage("D:\\temp\\JavaTests\\viewcode.jpg");
    Image bkImage = getToolkit().createImage("D:\\temp\\JavaTests\\SolarEclipse.jpg");
    MediaTracker Mt = new MediaTracker(this);
    Mt.addImage(img, 0);
    Mt.addImage(bkImage, 1);
    try{
    Mt.waitForAll();
    }catch(Exception e){};
    BufferedImage bi = new BufferedImage(img.getWidth(this), img.getHeight(this), BufferedImage.TYPE_4BYTE_ABGR);
    alphaImage = new BufferedImage(bkImage.getWidth(this), bkImage.getHeight(this), BufferedImage.TYPE_4BYTE_ABGR);
    Graphics gr = bi.getGraphics();
    gr.drawImage(img, 0, 0, this);
    backgroundImage = (BufferedImage)bi;
    gr = alphaImage.getGraphics();
    gr.drawImage(bkImage, 0, 0, bkImage.getWidth(this)/2, bkImage.getHeight(this)/2, bkImage.getWidth(this)/2, bkImage.getHeight(this)/2, bkImage.getWidth(this), bkImage.getHeight(this), this);
    Color bl = new Color(0, 0, 0);
    for (int x=0; x<bkImage.getWidth(this); x++)
    for (int y=0; y<alphaImage.getHeight(this); y++) {
    Color c = new Color(alphaImage.getRGB(x,y));
    int r = c.getRed();//x*4;
    int g = c.getGreen();//y*4;
    int b = c.getBlue();//255 - (x+y)*2;//Math.abs(y*8-255);
    // Make transparent colors, which look like black
    int a = (r == b && g == b && r < 100 && g < 100 && b < 100)?0:255;
    int vv = (a<<24) | (r<<16) | (g<<8) | b;
    alphaImage.setRGB(x, y, vv);
    public void paint(Graphics gfx) {
    if (backgroundImage == null)
    initImage();
    gfx.drawImage(backgroundImage, 0, 0, this);
    int i = 0;
    int delta = 100;
    gfx.drawImage(alphaImage, i, i, this);
    gfx.drawImage(alphaImage, i + delta, i + delta, this);
    gfx.drawImage(alphaImage, i + delta*2, i + delta*2, this);
    gfx.drawImage(alphaImage, i + delta*3, i + delta*3, this);
    gfx.drawImage(alphaImage, i + delta*4, i + delta*4, this);
    gfx.drawImage(alphaImage, i + delta*5, i + delta*5, this);
    void exitForm(java.awt.event.WindowEvent evt) {
    System.exit(0);
    public void windowActivated(java.awt.event.WindowEvent windowEvent) {
    public void windowClosed(java.awt.event.WindowEvent windowEvent) {
    public void windowClosing(java.awt.event.WindowEvent windowEvent) {
    System.exit(0);
    public void windowDeactivated(java.awt.event.WindowEvent windowEvent) {
    public void windowDeiconified(java.awt.event.WindowEvent windowEvent) {
    public void windowIconified(java.awt.event.WindowEvent windowEvent) {
    public void windowOpened(java.awt.event.WindowEvent windowEvent) {

  • How can we get help/advice amoungst each other? I have questions

    How can we get help/advice amoungst each other? I have questions which might not be bug related and thought it would be nice if we could bounce questions off each other.
    Example:
    Why is my Reflow sample behaving like this?
    Should I have some kind of settings set so things don't get all weird?
    I didn't set any breakpoints yet, but things are going weird.
    Image attached! Any insights?
    Thanks.

    You can post questions here too. If they are design questions if people know the answer they can respond too.
    For this particular issue, it does look like a design problem. From the screen shots, I'm guessing that the light gray box is using negative top margin to overlap the darker dray box. I think for this change the dark gray box to use height:auto and add a padding-bottom to it for the current space below the text. That way when the text starts to push down there will be a constant amout of space from the bottom of the text to the bottom of the dark gray box and that will push the light gray box down as well.

  • Confusion about how object interact and are aware of each other

    I have this java applet
    Two of the classes it contains are the main class with the init method and a UI class that is code for the interface.
    the main class instantiates the UI class anonymously (i think you call it that) i.e it does not put it into a named reference it just creates it by calling new without assigning it to anything.
    When I click on a button from the UI class I want to call a method in the main class...but how so?
    At first I tried to make the function i want to call in the main class static so I could easily call it from the UI class...but then it began to get complex...so i just sent a reference of the main class to the UI class via its constructer.
    Now i want the main class to update a JTable in the UI class, but how? It does not have any reference to the UI class.
    What is really the standard method of operation for this sort of thing when objects have to be calling methods of each other. How do I make them aware of each other.

    the best way to do it is like this:
    public class Main {
      //this is the main class
      private static class MyUIFrame extends JFrame {
        //create the class. It is useable within Main this way
        //static means it doesn't implicitly 'know' about the Main class. You can also
        //remove this and call Main.this to use Main's methods
    }Edited by: tjacobs01 on Apr 11, 2009 2:28 AM

  • In FCPX can I stack clips of multiple angles on top of each other and choose what parts I want to make my movie out of?

    Hi there
    I'm debating whether to purchase FInal Cut Pro X or not and I'm new(ish) to video editing.
    What I have done so far is produce a music video mimed to audio and shot at about 20 different angles. Each angle is the length of the ENTIRE song, not just snipets.
    What I want to be able to do is have those 20 videos sitting stacked up on top of each other (completely synced to the audio) and be able to choose what parts of what video I make my final video out of.
    So I want to be able to tell the system to start at angle 1, then at a specific time move to angle 6, then angle 19, then back to angle 1, then angle 16 etc etc etc.
    But I dont want to cut up the parts of each camera angle first, I want to be able to select a specific part to play from each ENTIRE camera angle.
    Is this possible please? And also what is the correct terminology for this process?
    I apologise for not using the correct terminology here, as I dont know the correct words for what I am trying to explain.
    Thanks

    FCPX mulitcam editing is the most advanced of any NLE on the market at the moment.
    Read the user manual here to learn how Multiclips work.
    http://help.apple.com/finalcutpro/mac/10.0.6/#ver23c76439
    You'll want to learn about how to work with Audio Channels with multiclips, also.  Very powerful.
    http://help.apple.com/finalcutpro/mac/10.0.6/#verc1fab5f6
    Here is my article on audio channels in Multiclips.
    http://www.macprovideo.com/hub/final-cut/final-cut-pro-multiclip-audio-channel-e diting-1006

  • New icons alway appear top right corner on top of each other.

    Hi All.
    When I connect to a network disc or download something to the desktop, anything that needs a new desktop icon to be created, all the newly created icons appear stacked on top of each other, like a deck of cards, in the top right hand corner. I usually have my main HD there but it refuses to stay put. I've tried the arrange and clean up options, I have also repaired permissions and run disc warrior. This is a very recent complete re install of everything, from scratch. Any other suggestions?
    Regards, Nick

    Hi Nick
    This may work.
    Open Terminal, found in Applications/Utilities.
    copy and paste this text into terminal.
    sudo rm .DS_Store
    supply your password, it will be 'invisible' as you type, Press Return/Enter key
    type
    exit
    Quit Terminal.
    Log out and log back in again.
    regards roam

  • Filling color in layered objects (a few circiles on top of each other)

    Hello all,
    I am new to Illustrator. I want to thank you any advices from you all first.
    Currently I am working on my first Logo design project. There are a number of circles on top of each other. The goal is to fill each circle with different colour.
    I read some other posts, they mentioned about the different objects are in different layers, so that it is difficult to fill colour individually. Any suggestions?
    I tried to make the image to Live Paint, but the option is in gray, so that I cannot change to Live Paint. And if I try to fill the colour, there are nothing happen.
    The file (in .AI format) can be download from this link.
    http://www.sendspace.com/file/olyyol
    And one last question, after I completed the Logo, is that possible to just extract the Logo itself rather than save the whole paper? What type of format I should save with if I want to make it eventually jpg file.
    Thank you very much for your help again.
    Pete

    You seem to be complicating this a little more than it need be.
    here's video of what I did always keep it simple.
    http://mysite.verizon.net/wzphoto/Paint.mov
    As for what you did was possibly open another file or took an extra step.
    But to do what you want is  a very simple matter you should be able to figure this out yourself but i am going to try to show how you are making it comlicated rathe than easy.
    First you fill one part with the color you want then
    you fill the other part with the same color

  • On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else on top of it.

    On some pages the text from more than one paragraph stack up on top of each other, like writing something then writing something else over the top of it. Some pages will run text and pictures together, like a car rear-ending another or a train pile up. Other pages will cut an image or text short, i.e. it will display a portion of the top of the image or text but not the rest. This happens on Amazon for example, the section where it says "Customers who looked at this also looked at" will allow only a certain amount of the upper portion of the description immediately below the picture of the product but below that section everything is fine until I get to another section displaying more products and their descriptions and then it cuts the bottom portions off again. I've noticed this behavior mostly in the sections with product photos, the text sections seem okay. YouTube also displays this behavior. It's even doing it on this page right now. Below this box I can read "The more information you can provide the better chance your question will be answered " , but directly below that in the next sentence I can see the start of it with "Troublshootin" and the "Automatically Add" in a green field covering the "g". The next clear text is "A window will open in the top corner. Click Allow, and then click Install. If the automated way doesn't work, try these manual steps." I tried turning of pre-fetching, clearing history, cookies, and cache, scanning for malware with Avast and Windows Defender all to no avail. It began when I upgraded from dial up to DSL via AT&T Uverse. I have a Motorola NVG510 modem. The modem was replaced an hour ago along with new dedicated lines and DSL/Phone splitter from the box by an AT&T technician to make sure my incoming lines were up to par. He ran a connection test and verified everything is up to standards. IE does not display this behavior. I am running Firefox20.0.1 and all previous versions have acted the same way since I upgraded to DSL about 3 months ago.

    If you have increased the minimum font size then try the default setting "none" in case the current setting is causing problems.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with text not being displayed properly.
    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Images are on top of each other.

    Forgive me, but I will explain this as best I can. We just got our iMac. We have 2 cameras that we use. So I imported some pictures from church last night. They show up in my library at the bottom AND the top (as if they were imported twice). Now, if I'm at the top of my library and double-click on an image, it brings me to the editing room. But now instead of the picture being the one from church, the enlarged picture is a construction picture taken by another camera (and the picture in the toolbar area is still the picture from church - they don't match). However, those same church pictures at the bottom of the library don't have that problem - they are what they should be. And there are some other images like that, too (but not all of my pictures have done that). And they don't have the same file name, so it's not like iPhoto is confused by that. Also, if I'm scrolling through, I will see pictures from church, and when I stop scrolling, the construction pictures come in and take their place.
    Any ideas??? Why is it double-importing and placing images on top of each other like that? Am I doing something wrong?
    Thanks for any help you might have on this.
    iMac   Mac OS X (10.4.9)  

    Vixon
    Welcome to the Apple Discussions.
    Try rebuilding the database. Hold down the apple and option (or alt) keys and launch iPhoto. Use the resulting dialogue to rebuild. Choose the top three options.
    Regards
    TD

  • Since my iPad IOS was updated to 7.0.4, when I send a Pages doc as a Word docx to my kindle the text is all scrunched up down one side as if the letters are on top of each other.  It worked find before and the docx are OK when imported to Word.

    Since my iPad 2 was updated to IOS 1.0.4, I cannot send a docx from Pages to my kindle.  I can to my PC and open it in Word.  But when I send a pages document and select Word as the format, the letters appear on my kindle screen down the left side, printed on top of each other.  It worked fine before the upgrade.  Any suggestions? 

    What version of Pages are you using? Did you upgrade to Pages 2.1 for iOS?

  • I've got a G5, OS 10.5, and an IBook OS 10.4.  Both can reach the internet wirelesly.  How can I make them aware of each other, so they can exchange files

    I've got a G5, OS 10.5, and an IBook OS 10.4.  Both can reach the internet wirelesly. 
    How can I make them aware of each other, so they can exchange files?  Both have network
    icons in the systems peferences, but I can't see how to hook them up.

    That got me closer, but I'm not quite there yet.  On each ofthe two computers I've allowed all users File Sharing and Remote Management.  Each computer has an address 192.168.1.2 (or 4).  When I enter those addresses into "connect to server" the reponse is either 'drop box' or 'public folder'.  So it seems that only very basic sharing is allowed. I have'nt  set up a public folder on either one.

  • A video on any site is shown double, one on top of each other!

    When ever I want to see a video, no matter what site it is, the screen, where the video is on, shows two images of the video. Basically, the video is condensed into two, one on top of each other, making them wide, but I dont know why there show two!!

    This seems to have happened after the latest Adobe Flash Player update. Might be an issue of compatibility with Firefox, since in Internet Explorer the problem doesn't appear. Haven't tried any other browsers yet.
    To me, it seems that the two images that appear are similar to the ones used in making 3D movies, but instead of displaying them overlapped they are displayed separately. This is just a wild guess and I have no actual proof to back this up.
    PS: I am also using Firefox 3.6.13 on Windows XP.
    Later edit: I have found a workaround for this issue. Right-Click on any improper displayed video and choose Settings. On one of the tabs found there is a checkbox "Enable Hardware Acceleration". It was enabled for me, after disabling it and restarting the browser the video was back to normal.

Maybe you are looking for

  • Connecting a MacBook to an external TV source wirelessly

    Im not familiar with and would be great if somebody can help me sort out a way to connect to my Samsung Plasma with my MacBook through a wireless type of network. Im currently using a cable, HDMI / DVI to mini DVI to MacBook and it works great for di

  • I want to upgrade my video drivers and need help

    I have a Hp Pavilion A1530N desktop. i want to upgrade its video card to get more out of gaming. I want to know which is a good card to upgrade to and if i will be able to put it in myself without taking my desktop elsewere?

  • How do I stop the Close Operation of JFrame

    I want to stop user to close my frame on click of window close icon. How do I stop this operation. Dinesh

  • Trouble Restoring Compaq Presario C762NR After New Hard Drive

    I installed a new hard drive in the laptop and bought the recovery disks. The recovery runs for hours and then fails. It gave me a whole list of (Pass/Fail) items and it seems that the only part that failed had to do with .systemlogs I wish I could j

  • 'Resampling' images

    I'm using Photoshop Starter Edition 3.0 on Windows XP and I want to resize images (or 'resample') so that the image takes up less bandwidth when I upload it to a website. But I can't find any drop-down menus or links in the programme to resize. How d