Full Screen Application

Hello, my problem is the following:
I have this piece of code...
JTabbedPane tabbedPane = new JTabbedPane();
JComponent panel1 = makeTextPanel("Panel #1");
tabbedPane.addTab("Tab 1", panel1);
JComponent panel2 = makeTextPanel("Panel #2");
panel4.setPreferredSize(new Dimension(410, 50));
tabbedPane.addTab("Tab 4", panel4);
Is there any function different from setPreferredSize that allows me to have my JTabbedPane in a maximized window (related to the screen size)?
On the other hand, I would like that the tabs (In my case there are located on the left side) occupy the whole height (half of the height each one). In this moment they have like a default size...
Thanks a lot,
Fran.

It is needed to put the setExtendedState() after setVisible(), otherwise it does not work.Works fine for me. WinXP, Java 6u10 beta
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
frame.setVisible(true);frame opens maximized.
And with respect to my other question, any idea?Use a suitable layout manager.
The Java™ Tutorials: [Laying Out Components Within a Container|http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html]
db
edit Oh I see, you must be calling pack() after setExtendedState(...). Don't do that.
Edited by: Darryl.Burke

Similar Messages

  • How do I run two full screen applications on separate screens?

    I have two screens for my MacBook Pro with Lion; the laptop screen and a stock screen hooked up by a VGA cable. Currently, when I use a full screen application, my second screen just changes to the grey fabric pattern. How do I run a full-screen application on each screen?

    Hi Jared,
    Connect/turn on the external monitor. Open System Preferences on your MBP > Displays. There should be two windows, one for the external monitor and one for the MBP. Click on the window for the external monitor. Click on the Arrangement tab. Uncheck the box for Mirror Displays. This willallow you to set each display to its own resolution. On the external display, click on the pref window for the external monitor display setting. Click on Display. Set the resolution to what you want. On the MBP's display, click on the pref window for the MBP's display and set the resolution to whatever you want. You'll be in what's called "extended desktop mode." You'll have to move the "pointer" all the way to the edge of one display to get it to go onto the other display. Open whatever you want, and drag it to the extended monitor. Set it to full screen. Open another whatever on the MBP's display and set it to full screen. You should be full screen on both displays.

  • My new Macbook Pro 13 keeps minimizing full screen applications and sending me back to the desktop. Any Help?

    I can't stay in full screen applications without being returned to the desktop within 30 seconds. Is anyone else experiencing this problem or can assist
    I am testing it without running any applications other than safari in full screen. It act like it is "swiping" me back to the desktop screen. I am not touching my trackpad or keyboard.
    Thanks,
    Corey

    Do you have Google Drive installed? At the following thread at least one person had a similar issue as you: for more details please check out this thread:https://discussions.apple.com/thread/5526061?tstart=0

  • Full screen application on Mac Os Lion

    Hi,
    I am trying to develop a full screen application in AS3  / Air. This application must run on Mac Os X Lion plateform.
    The fact is that when I launch the application on Lion , a start up window appear, then the application is going to full screen mode, but the launch window still appear in front of it.
    This problem is for Lion only, as the application work well on Snow Leopard.
    Here is the code i'am using :
    Init of the app :
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                    xmlns:s="library://ns.adobe.com/flex/spark"
                                    xmlns:mx="library://ns.adobe.com/flex/mx"
                                    showStatusBar="false"
                                    applicationComplete="init()"
                                    width="100%" height="100%"
    >
    Public function to initiate full screen
    public function init():void
         // some stuff before, nothing to bother with full screen
          this.stage.displayState = StageDisplayState.FULL_SCREEN; // fullscreen --
    Any clue to bring the full screen in front or to reduce the launch window ?
    regards,
    Taz

    Hi there, i am usign Flex SDK 4.6 with Air 3.2 release candidate on OSX Lion 10.7.3 and i still have this problem too...
    I did manage to find a workaround that work only with air 3.2 :
    I wait for user mouse input before setting it to fullscreen and it works.
    But i still can't make it go fullscreen automatically, it will be hidden by the app window.
    One thing is weird, when i compile it in flash builder, i get this bug one time in 1000 compiles, but when it is installed as an air app on , it wont work at all.. unless i use the workaround stated earlier.
    Thanks

  • OS X maverick - I want the swipe function to switch from one full-screen application to another, is it possible?

    Hi everyone,
    I just updated my mid-2010 MacBook Pro to the OS X Maverick. However, a friend of mine has Mountain Lion, and she has this really cool function that lets her swipe the keyboard to change the view from one "screen" to another, so for example she might have word open in one screen and safari in another. Can I do it in OS X Maverick as well? And if it isn't possible in Maverick, can I somehow update it so that I get the function? I've been trying to do the same with mine but it isn't working.. Really keen to get it to work as it would make life so much easier with writing essays and what not. I'm not very good with anything related to software, so forgive me if this seems like a silly question. Also, I'm not a native English speaker so my terminology might not be the best..
    Cheers

    Not a silly question at all.
    The function is called Spaces, which lets you switch between different desktops. You can read about Spaces here: Mac 101: Using Spaces to organize your windows and applications (Mac OS X v10.5, 10.6)
    If you click the symbol with the two opposite arrows, in the upper right corner of the window of an application that supports it, an app will open in full-screen mode.
    Then you can configure the gestures that control Spaces in Applications > System Preferences > Trackpad > more gestures.
    On my mac, for example, if I do a three finger swipe upwards, it opens Mission Control. Mission Control organizes the different desktops in Spaces. I can open a new desktop for Spaces, remove a desktop, or switch apps between desktops.
    It probably doesn't make much sense when this is described in words, but if I were you I'd just jump in and experiment with it a bit. If you have more questions report back here.
    Message was edited by: arthur

  • Drawing Over Full Screen Applications

    Hi,
    I am trying to create an application that will flash vocab at me while I am gaming, in the hope that I may learn it with minimal effort...
    As I play guild wars a lot, I was wondering whether there would be a way for the program to display its output over guild-wars, without guild wars losing the focus, similar to the way it is done in the xfire chat client.
    Currently the output consists of two JLabels in a JWindow.
    I would post code, but as my problem is more an abstract one I doubt that would be to any avail.
    I have read about drawing directly to screen - active rendering etc, and am not sure whether any of this would be applicable.
    Thanks in advance for any help.

    If the other app is a full-screen exclusive application, there's basically no way.
    Even if not, you can not make a truly transparent window in Java (yet), so you can't place it on top of another app and make the latter visible and accessible to events.
    Dmitri

  • Disabling animations when closing full screen applications

    When I completely close an application from full screen as opposed to minimising it there is a transition that slides the desktop in from the right hand side of the screen. Is this feature a fixed part of the operating system or is it possible to disable it?

    Never mind. Found it. "LAUNCHPAD".

  • With a full screen application open, if you then open and close LaunchPad, the dock will not go away!

    This is especially annoying if you have hot corners for LaunchPad and accidentally open it with a full screen app open, because the Dock will not leave!  Try it: open any app in full screen, open LaunchPad with a gesture or hot corner, exit out of LaunchPad and the Dock will be at the bottom of the full-screen app, obscuring the bottow 10% or so of the screen.  Any fixes, or something to come on Apple's end?

    below is what I get with the dev.jeffersonscher.com etc. url. But what do I do with this information? I can launch safe mode, but I still get only the 2" icon/window of Firefox.
    JavaScript Browser Tests
    navigator object properties
    navigator.userAgent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
    navigator.appName = Microsoft Internet Explorer
    navigator.appCodeName = Mozilla
    navigator.appVersion = 5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
    navigator.platform = Win32
    DOM methods/collections
    if(document.getElementById) = true
    if(document.layers) = false
    if(document.all) = true
    window properties
    if(top.window.moveTo) = true
    if(top.window.moveTo(0,0)) =
    The following data is reported by a server running Microsoft IIS server and ASP:
    View selected http headers at <a href="svrvars.asp">svrvars.asp</a>

  • Brightness jumps to full when doing full screen application

    When I have my brightness at a certain setting and then start playing a game, the brightness jumps to full. When I then press the button for less brightness, it jumps immediately to the setting it was originally.
    This also happens whenever I do alt+tab to return to the desktop. So it appears it happens when I do something that requires to switch to full screen mode cause it also happens with other programs.
    At normal use, surfing, office,... this problem does not occur
    Any solution, cause it's really annoying

    Anyone?

  • X mountain lion causing my display setting to be very low after tab out from a full screen application like game. anyone encountered the similar thing?

    whenever i tab out from a full screen then the display setting will auto change with a blue flash screen.

    Your issue could be caused by many things however I'm pretty certain it has nothing to do with OS X being faulty. OS X is not like Windows that requires a re-install whenever issues present themselves. You need to be methodical in checking where your issue lies. There are numerous articles available that go over causes, I'd suggest looking through the X-Lab article listed below and then methodically going through each step until you discover the cause.
    http://www.thexlab.com/faqs/performance.html
    If you still can't find it then you should work with an AASP to locate where your issue lies.

  • Audio issues with some full screen applications (game) and teamspeak with a 15" MBP retina display

    While trying to play League of Legends in the lobby and loading screens i can hear everything but when i go in game i cant hear anything, and with teamspeak my teamspeak cant detect the input or output devices and i can hear everything else like skype and everything
    Already reinstaled flash restored the system and took it to the apple store, this happened like for 2 days with youtube and they solved that but not the problem with the game or teamspeak

    joshcali wrote:
    actually.... it doesn't.
    the 1920 is simulated, and apple doesn't recommend it.
    Apple doesn't offer the option of full resolution (2880x1800) and says everything other than 1440 x 900 won't look as good as 1440x900.
    so while you can set the monitor to 17" resolution (1920x1080) it has to simulate it on a 2880x900 screen and has to blur and reinterpolate elements to make it work
    they've really messed it up for anyone wanting true HD resolution for professional reasons.
    Indeed. Everything except 2880x1800, which is unavailable without SwitchResX, and 1440x900, which comfortably fits one pixel of the image into a four pixel square of the Retina Display, must be simulated or scaled. However, while the scaling is real, the 17" "simulation" looks as good, to my eye at least, as my wife's MBP 17". Going smaller will test one's eyes probably as much as Apple's scaling algorithms so the tradeoff for greater screen real-estate may turn out not to be as bad as we'd think. All I need is a MBP Retina Display and SwitchResX to find out...

  • [High level of difficulty] how to change the monitor display in the space of a full screen application

    Hello everybody,
    I have an application which when opening creates a personal space (I can get back to the desktop with F3).
    But this application changes the display of my monitor : it sets "Adobe RGB 1998" (very painful)
    The problem is : totaly impossible to change display monitor when i'm in the personnal space of the application.
    How to open the monitor control panel when I'm in that space?
    If i do F3 to come back on my desktop, the color of my display monitor return to LCD color, it's nice. However it's impossible to keep the LCD display when i come back on the application : "Adobe RGB 1998" comes automatically

    Sounds like the application is the problem. What application is it?
    Video Troubleshooting Internal and External Monitors

  • Command tab in a full screen application (games)

    I'm quite new to the Mac OS and I would like to know how do you 'alt-tab' to another application while you are in a game (Warcraft III), and is it even possible to do so? If not are there any other applications that allow you to do it? Thanks in advanced.

    Please provide a link to the page where you clicked the mobileme link.

  • Full screen applications (facetime, dvd, iPhoto) fly off to the right of my screen after about 1 minute.

    When I've got Facetime or a dvd running after about 1 minute the active window flies off to the right, it's still open somewhere else and I can bring it back to work on but it will go again a minute or so later. I can't find anything running that is refreshing or interfering. I've upgraded indesperation to mountain lion incase it was a lion issue but it's still there. i can't find any mention of this on the communities already. If someone could point me in the right direction of how to solve this or let me know if they have had the same issue and we could maybe compare and see what the common issue is.

    - Open Firefox -> got to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. You can enable the Add-ons later. Check if its working.

  • Conflict between using msn messenger in offline mode and full screen mode

    I don't want to be visible in my msn messenger for the simple reason that I don't want to get chats all the time, but when I'm in off-line mode in msn messenger and I open a full screen application, immediately the messenger goes online. This happens with full screen games and while watching a youtube video in full screen. Why is this and how can I fix this?
    Andreas

    Your profile indicates you are running Tiger.
    Please update it or repost in Tiger forum.
    Thanks.
    Since msn messenger is not an Apple product, you might also check to see if there are any forums in the MS area.
    This might be a good start
    http://www.officeformac.com/productforums
    Message was edited by: nerowolfe

Maybe you are looking for

  • How to make several threads do smth at the same time?

    Hello! Is there a way to make several threads guaranteedly do something at exactly the same time? The code below creates two identical Random objects with approximately 90% probability, in 10% cases Random's are different (Random constructor takes cu

  • I cant burn a cd from itunes or any other program

    i was having a problem connecting to itunes store, but after some time i just downloaded it again and installed it. Now Im unable to burn a cd from Itunes and now realized i cant burn any dvd/cd's from any program in my computer. has anyone got a sol

  • PS CS4 can't see script in folder

    I have a Slideshow Pro script installed that I use in Photoshop to batch export Photoshop files for use in Flas with Slideshow Pro. The file is in c:\program files (x86)\adobe\adobe photoshop cs4\presets\scripts, and I have that location set in prefe

  • Translation of Variable Output From CFQUERY

    I'm not highly technical, and this is probably something easy, but here is my dilemma. First, define some variables: <cfset datasource = '#MyDatabase#'> <cfset query_tbl = 'MyDatabaseTable'> <cfset field1 = 'actual_fieldname'><!--- a field in MyDatab

  • HTML/Javascript positioning air.Video object

    Hi all, Simple question which has been doing my head in all weekend! I have got a simple application that programmatically creates an Air Video object and attaches it to a camera as per         this.video = new air.Video( 320, 240 );         this.vid