How can I make a window show up in every desktop?

How can I make a window show up in every desktop so when a user switches views it's still on their screen, using Xcode, Applescript-ObjC?

hi, try this:
public static void centerWindow(Window win){
Dimension screenSizeWithSpeedBar = Toolkit.getDefaultToolkit().getScreenSize();
Dimension screenSize = new Dimension(screenSizeWithSpeedBar.width,screenSizeWithSpeedBar.height-25);
Dimension frameSize = win.getSize();
if (frameSize.height > screenSize.height)
frameSize.height = screenSize.height;
if (frameSize.width > screenSize.width)
frameSize.width = screenSize.width;
win.setSize(frameSize);
win.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
It works with following arguments: JWindow, JFrame and JDialog

Similar Messages

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    On my Mac desktop I must have changed a setting so that now when I move the mouse the open windows fly off to the sides and I can't see them. They come back when I move the mouse, but it is so annoying. How can I make the windows not disappear like that?

    Click on the Hot Corners..  button and look at the four definitions.  In the picture below, if you moved the cursor to the right top of the screen, it would slide all the applications off the screen as you describe and show the desktop.  Set it to "-" to deactivate.

  • When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    When I attach a file to outgoing mail it shows up in the body of the e-mail. How can i make it only show up at the end or elsewhere?

    Edit > Attachments > Insert Attachments at End of Message. If a new message is the active window, the option applies only to that message. If you don't have a new message open, then the option becomes Always Insert Attachments at End of Message.

  • How can I make a form show complex composite data?

    How can I make a form show complex composite data?
    We would like a form to display the following information:
    Employee Names as the columns, 1 row for each calendar day, and each item in the block containing the total sales amount (and other information) for that employee for that day.
    This would require the block to function as a (composite) crosstab report.
    Here is an example:
    We have employees: Jane, John, Jim, and Janice
    We would like to see their total sales for the following days: 5/1 .. 5/5
    Jane John Jim Janice
    5/1 50 8 10 3 30 5 20 7
    5/2 40 7 60 8 10 2 30 4
    5/3 20 3 50 8 70 9 50 9
    5/4 51 8 40 7 40 8 50 8
    5/5 10 1 20 2 90 10 10 2
    We have a table with records of each day, for each employee, and their sales for that day.
    There is a possibility our list of employees can change as well as the number of days.
    Anyone tried doing anything like this with a form? We don't want to just embed a report because we would like to include other data as well besides what is mentioned above and we would like them to be able to change some of that data. Thanks in advance for any help.
    null

    I have a VERY similar problem where I want to have this matrix on the form with six days worth of data (three columns for each day) for my data table. I have done as Momen has suggested and created a view (using SQLPLUS):
    create table weekdays (weekday varchar2(3), date_x date);
    drop view employee_absences_v;
    create view employee_absences_v as
    select weekday,
    absence_date,
    hours,
    absence_code_lvid,
    adjustment_status_lvid
    from employee_absences ea, weekdays wd;
    that hopefully provides a row for each day of the week for my data table. The view is created OK but I'm not sure how to get it into the form properly. Also, I am using the form to CREATE rows in the data table not just SELECT and DISPLAY and there may or may not be a row of data for a corresponding day which is going to be a problem for me using this view method, I think. Let me know how this goes and if you get your form to work and how? Momen, your method appeals to me but it's not 100% clear how to get it to work in a form?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tina Radosta ():
    We tried to create the view (not with Designer because we don't have that). We were not successful in creating a view with a matrix. We would greatly appreciate your help.
    Thanks in advance,
    Tina<HR></BLOCKQUOTE>
    null

  • TS4293 How can I make iMovie to show me the AVCHD files importet by iPhoto?

    My iMovie 11 shows the videos from my iPhone importet by iPhoto, but not all the videos importet the same way from my camera. It works fine with the videos recorded in MP4 but not at all with the AVCHD. How can I make iMovie to show me the AVCHD files? iPhoto imports and shows the AVCHD fine. Also I could import the AVCHD files with iMovie but then they would be twice on my computer and use a  lot of space.
    thanks for your help

    Right now, iMovie won't edit AVCHD wrapped files. You have a few options:
    1. Import the videos with iMovie. Afterwards, you may add the imported movies to iPhoto if you want.
    2. Import the videos with another app. (Too numerous to mention.)
    3. Convert the videos with a third-party tool.
    4. Wait for a future version of iMovie that adds this capability.

  • How can we make 1 window to be displayed on top of other window in smartfor

    Dear friends,
                       How can we make 1 window to be displayed on top of other window in smartforms as i m not getting content of a window which is placed above other window?

    Hi,
    There r two ways ways to display image.
    1)As background image
    2)using graphic node.
    To display image as background.
    click on page node.
    choose background picture options
    enter the path of the image.enter the resolution and output mode in the output attributes.
    enter the horizontal and vertical positions where the image to be displayed in the page.
    To display image using Graphic node.
    Add a graphic node into the window where u want the image to be displayed.
    In the General attribute enter the path and the resolution.
    Hope ur problem get solved.
    Regards,
    shiva

  • HT202060 How can I make Activity Monitor show one graph instead of four for MacBook Air?

    How can I make Activity Monitor show one graph instead of four for MacBook Air?

    Learn about OS X: Activity Monitor shows one CPU Usage graph on systems with more than four cores
    Copied and pasted from top of the page.

  • How can I make folder name show up on mp3 device?

    how can I make folder name show up on mp3 device?

    Read the User's Guide for the device.

  • How can i make my window 7 compatible to adobe?

    how can i make my window 7 compatible to adobe?

    Which Adobe software or service are you referring to exactly?

  • I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    I put in my memory card to the left side of the computer, but I cannot find the file of pictures anywhere. Its not even on my desktop. What should I do and how can I get it to show up on my desktop?

    If your Mac is new-ish and has one of the Lions as its OS, the drives, cards, USB sticks no longer show up, even though they're there. Go to Finder's Preferences and tick the corresponding items in the General and Sidebar tabs.

  • How can I make my iPod show up in the iTunes menu bar?

    When I plug in my iPod nano (2GB) 2nd Generation it doesn't show up on the left side of my screen in the iTunes Menu Bar. I don't have the original cord, saying that I got it awhile ago, how can I make it show up?
    There is no content on my iPod currently, and I have tryed resetting all of the Settings and even taken all of the music off of it, but it is still not showing up. Do you have any suggestion son how to make it show up or even have the computer recognize that it is plugged in? -Thanks for your time!
    P.S.- I have also tryed plugging it into a Windows computer and a Mac.

    See Multirow Bookmarks Toolbar: https://addons.mozilla.org/firefox/addon/6937
    You can't place bookmarks on a new toolbar. You can only place a bookmark on the toolbar that has the "Bookmarks Toolbar items" on it.

  • Pop Up - how can I make the window in the backround visible?

    Hi,
    when I create a popup, the window in the background becomes unvisible as long as the popup is not closed. how can I make the background window become visible when the popup is open?  I can hardly believe, that such a basic feature is not supported. But on the other hand, I also have some problemes with the sizing of the pop up...
    Help is highly appreciated.
    Kind Regards
    Felix

    ...just found this thread. And I am not very happy about what I read. Is your system 701 or higher?
    Re: Confirm Popup in Web Dynpro, window size
    Cheers
    Felxi

  • How can I make disapear Windows title bar?

    Helo all,
    I'm actually working on an AIR application and I would like
    to know how can I make disapear the Windows title bar (with the
    "close", "minimize", "full screen" buttons) like it is in
    kuler.
    thanks for your help ^^

    Hi, in order to have the best chance of getting an answer, I
    suggest you repost on the
    AIR
    forum
    :-) Sami

  • How can I make my SSL show up on my iweb site?

    Hi. So my website is: www.ymcacampbenson.org 
    I recently purchased and am correctly running my SSL from GoDaddy.  They have confirmed that it is current and running.  They stated that I need to make the script in iWeb point to the secure site.
    Anyone know how I can make my site show up https?

    Here's some help from my friends at Google :
    Use SSL on a webserver :
    https://www.google.com/search?q=how+to+use+ssl+on+a+webserver
    How to change http:// in https:// :
    https://www.google.com/search?q=how+to+change+http+in+https
    Followed this link :
    http://www.sitepoint.com/forums/showthread.php?779270-how-to-change-http-to-http s
    Found this :
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    Notice that nowhere are names of applications mentioned.

Maybe you are looking for

  • What is line item dimension and cardinality in BI 7.0

    Can u plz suggest me what is line item dimension and cardinality in BI 7.0.. Thanks in advance. Venkat

  • Mac Mini (late 2012) vs. iMac (mid 2007)

    I use my computer primarily for video conversion, internet, iTunes, iPhoto, iMovie (occassionaly...too slow), iWork, Office, various other things but NO Final Cut video editing and intense graphics work. I've wanted to get a new Mac for quite sometim

  • Incoming messages issue

    Hi, On my MBP with the latest Leopard version on and 5 accounts enabled, mail gets 800 + incoming emails every time I launch it. It seems it is downloading them each time from MobileMe. Thanks in advance for the help.

  • SOAP Header Tag

    Hi All, Is there any way out to eliminate the tag <SOAP:Header/> while sending the message to a legacy system using a receiver SOAP adapter. <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelop e/'> <SOAP:Header/> <SOAP:Body> Need to el

  • How can I revert back to a previous verizon of iOS?

    MY Bluetooth GPS receiver stopped communicating with my Strava app and Cyclemeter after I upgraded to iOS 8.3.  THe only app that still works is the Dual GPS Status app. i Wish to reload iOS 8.2 where all my apps stil worked.  Thank you.