Fullscreen pushing the limits?

Cause i really need this fullscreen option i tought to give it another try..
by not using javafx pure but wrapping it with a swing application
so the idea is to start it as an swing application who sets the resolution and then display my javafx application :)
however nothing is displayed when i set the fullscreen option screen.setFullScreen(displayMode);
help :]
package hh;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javax.swing.*;
import java.awt.*;
public class Test extends JFrame {
    private static JFXPanel javafxPanel;
    private ScreenManager screen = new ScreenManager(this);
    private static Scene scene;
    private static DisplayMode displayMode;
    public static void createScene() {
        Group root = new Group();
        scene = new Scene(root);
        Group content = new Group();
        ImageView bg1 = new ImageView();
        bg1.setImage(new Image(Test.class.getResourceAsStream("/hh/resources/images/theme1/background.jpg")));
        content.getChildren().add(bg1);
        root.getChildren().add(content);
        // add scene to panel
        javafxPanel.setScene(scene);
    public static void main(String[] args) {
        new Test();
    public Test() {
        GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
        int bitDepth = env.getDefaultScreenDevice().getDisplayMode().getBitDepth();
        displayMode = new DisplayMode(1024, 768, bitDepth, DisplayMode.REFRESH_RATE_UNKNOWN);
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JFrame frame = new JFrame("test");
                frame.setResizable(false);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                // create javafx panel
                javafxPanel = new JFXPanel();
                javafxPanel.setPreferredSize(new Dimension(550, 400));
                // create JavaFX scene
                Platform.runLater(new Runnable() {
                    public void run() {
                        createScene();
                frame.setContentPane(javafxPanel);
                screen.setFullScreen(displayMode);
                frame.pack();
                frame.setLocationRelativeTo(null);
                frame.setVisible(true);
package hh;
import javax.swing.*;
import java.awt.*;
public class ScreenManager {
    private GraphicsDevice device;
    private JFrame window;
    public ScreenManager(JFrame window) {
        this.window = window;
        GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment();
        device = environment.getDefaultScreenDevice();
    public void setFullScreen(DisplayMode displayMode) {
        this.window.setVisible(false);
        this.window.dispose();
        this.window.setUndecorated(true);
        this.window.setResizable(false);
        device.setFullScreenWindow(this.window);
        if (displayMode != null &&
                device.isDisplayChangeSupported()) {
            try {
                device.setDisplayMode(displayMode);
            } catch (Exception ex) {
                ex.printStackTrace();
    public Window getFullScreenWindow() {
        return device.getFullScreenWindow();
    public void restoreScreen() {
        Window window = device.getFullScreenWindow();
        if (this.window != null) {
            this.window.dispose();
        device.setFullScreenWindow(null);
        Dimension dim = new Dimension(1024, 768);
        this.window.setResizable(false);
        this.window.setPreferredSize(dim);
        this.window.setSize(dim);
        this.window.setLocationRelativeTo(null);
        this.window.setUndecorated(false);
    //    this.window.setTitle(g.trans("title"));
        this.window.setVisible(true);
}Edited by: mortias on 21-aug-2011 9:00

Hello mortias,
Why don't you use basically something like that? It will automatically fit the dimension of your screen
import javafx.application.Application;
import javafx.geometry.Rectangle2D;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.Pane;
import javafx.stage.Screen;
import javafx.stage.Stage;
public class HelloWorld extends Application {
    //~ ----------------------------------------------------------------------------------------------------------------
    //~ Methods
    //~ ----------------------------------------------------------------------------------------------------------------
    public static void main(String[] args) {
        // Entry point
        Application.launch(args);
    @Override
    public void start(Stage mainStage) throws Exception {
        Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds();
        //set Stage boundaries to visible bounds of the main screen
        mainStage.setX(primaryScreenBounds.getMinX());
        mainStage.setY(primaryScreenBounds.getMinY());
        mainStage.setWidth(primaryScreenBounds.getWidth());
        mainStage.setHeight(primaryScreenBounds.getHeight());
        Pane pane = new Pane();
        Scene scene = new Scene(pane);
        Label label = new Label("Hello World");
        pane.getChildren().add(label);
        mainStage.setScene(scene);
        mainStage.setVisible(true);
}Niculaiu

Similar Messages

  • Pushing the limits of continuous high-speed DAQ + processing, with PXI-6115 + PXI-8360

    Hi all,
    I'm trying to do continuous high-speed data acquisition + processing. I currently have:
    Chassis: PXI-1042Q
    AI card: PXI-6115 (x2)
    Link: PXI-8360
    PC CPU: Intel Xeon W3503 (dual-core, 2.40 GHz)
    RAM: 4 GB
    The idea is to continuously grab 8 channels' worth of analog inputs, scan for "events", and if found, log the events to disk.
    My client would like to use the maximum sample rate of 10 MHz, but I found that above 5 MHz, DAQmx Read.vi can no longer keep up (e.g. at 6 MHz, it takes 110 ms to read 100 ms' worth of data).
    Im thinking of getting beefier components, but I'm not sure where the bottleneck is. Here are some thoughts:
    1) The MXI Express link
    The PXI-8360 is rated for a sustained throughput of 100 MB/s.
    I'm not sure how big the data is. PXI-6115's ADC is 12-bit. Does that mean each datum transferred through the MXI cable is 1.5 bytes? Is the data padded? Or is it 8 bytes per datum, because Dbls are being transferred?
    2) The CPU
    In Resource Monitor, I notice that the CPU usage is 0% at 60 kHz, 8% at 61 kHz, and 50% at 70 kHz (meaning that one core is maxed out). I'm surprised that it keeps up all the way until 5 MHz though.
    What causes this high CPU usage? Is it due to the conversion of the data into 1D array of waveforms?
    3) Something else?
    Have I missed something completely? Is what I'm describing even possible?
    Thanks in advance for any advice!

    Hello,
    Each sample will take up 2 bytes, 12 bits data + 4 empty bits. so the PXI-PCI 8360 is only able to transfer a maximum of 50S/s in this case.
    Also, because the PXI bus is shared among all of the cards, two PXI 6115 cards will be trying to transfer 80MS/s or 160MB/s.
    Finally, since the PXI 6115 are DAQ family cards, their specifications aren't really written for continuous data acquisition at the upper end of their sample rate, but I'm interested to know if you can get up to 10MS/s with only one card operating at a time?
    -Jim B
    Applications Engineer, National Instruments
    CLD, CTD

  • Pushing the limits

    I have a 2008 Mac Pro 3,1 (2 x 2.8 Ghz quad core) with 10GB memory and four disk drives. It also has the ATI Radeon 5770 1GB card with two monitors attached.
    I've just finished editing a relatively short (7 minute) video. It has:
    100 video clips (many were .PNG stills)
    70 audio clips
    8 titles
    I only used Transitions and other FX sparingly.
    So, as I got close to done, I'd get the spinning beach ball for 5 or 6 seconds after doing almost anything that involved a change.
    Any thoughts on where I'd get the most bang for my buck? SDD for the main drive? More RAM? Upgrade the CPU?
    Or, wait until I have the cash for a new machine?
    Thank you.

    Activity Monitor or Top would have given some indication what if anything was happening at the time, state of memory and disk drive usage for instance as well as processes and any tasks that were running.
    FCP-X 10.1+ on dual AMDs show nice improvements.
    2013 Mac Pro vs 2010 Mac Pro with Saphire HD 7950 Video Card
    Optimizing Handbrake for Faster Video Conversion
    Depends a bit on how full, how old, your disk drives and how it is setup to edit your projects.
    8 x 2GB RAM $88 so whatever it would take to fill DIMM slots.
    Processor - only option is small change, the 3.2 5400's and still at 8-cores. 
    Six year old system that even a 2013 MacBook Pro or iMac could give a run for money w/o investing $4,000+ in a Mac Pro 6,1.
    Barefeats:
    February 21st, 2014 -- 2013 Mac Pro 8-core versus 2009 Mac Pro 8-core running CPU crunch and GPU stress tests
    February 12th, 2014 (Update) -- Final Cut Pro X 10.1 Shootout: 2013 Mac Pro vs 2010 Mac Pro -- added 8-core 2013 Mac Pro with D700s
    Five models of 2013 Mac Pro running Resolve, FCPX, After Effects, Photoshop, and Aperture
    May 9th, 2014 -- GAMING: 2013 Mac Pro 6-core versus 2010 Mac Pro 6-core
    May 6th, 2014 -- WICKED FAST: Samsung XP941 flash blades in the Mac Pro tower PCIe slots
    April 29th, 2014 -- The Beauty and The Beast: 2013 Mac Pro 12-core 2.7GHz versus 2010 Mac Pro 12-core 3.46GHz
    April 25th, 2014 -- SHOOTOUT: 'late 2013' Mac Pro Quad versus 'late 2013' iMac Quad i7 -- includes 10 real world apps

  • Is FCE on a Powerbook pushing the limits too much?

    I've got a standard 15" Powerbook computer, 1.67G, 80G HD, 2G ram which already has applications that leave about 56G of HD space left. I think FCE will take about 300mb of HD space as it does on my intel Mac tower, so it will fit. I just want to know if this 'smaller' computer is useful for working on video using FCE. I would leave LiveType and Apple Loops on an external drive to save working space on the startup drive.
    Which 'Processor Intensive' features of FCE would I want to avoid if I were working with FCE on this smaller machine?
    TIA,
    Ken

    You can now legally use the same FCE on both
    machines.
    Ian.
    Yes, that is good also. They allow a tower and your notebook to be used under one license.
    Here is my plight today and I hope someone here will give me guidance on how to best deal with this:
    I installed FCE on my notebook last night and it did not give me the option under 'custom install' to install LiveType and SoundTrack on an external drive I have. I take it that it can install on another 'internal' drive only, but I don't know. I went ahead with the full install and lost 25G of hard drive space and now only have 25G left on my Powerbook hard drive. I wonder if I can move all the apple loops to the external. I don't want to mess anything up.
    I'll rely on you guys for advice at this point. The way it is, I'm sure I can live with 25G of Hard Drive space if I move projects off to the external when I'm done with them.
    - Ken

  • Comments on the 285GTX and the Limiter

    I ask if you have the time and are willing, please post your experiences or feedback with the 285GTX and the limiter whether positive or negative. I will forward to the appropriate parties This is not a official Adobe request or anything incase any are wondering.

    Thank you for the feedback. The limiter comes into play on the 285GTX when you add effects to a 4th layer or higher video and leave the tracks active. The yellow line above your sequence will turn red indicating that the effects for that layer will be processed by the CPU and you will have to render out those effects to export them with the sequence. If you monitor your CPU usage once you add effects to a 4th layer or higher, you will see it increases far more for that layer than it did for the previous 3 layers. Basically what the limiter does is force you to render your timeline if you have effects beyond the first 3 layers and increases CPU usage allot more for any effects beyond the 3rd layer. This requires those projects to take more time due to rendering the effects on those layers. For many that may not be an issue but for those with tight deadlines it will be. If you monitor your GPU usage while playing back 3 layers with several effects, you will see the 285GTX is not being pushed hard with just 3 layers. It is not based on the codec of the material. AVCHD and R3D had the same limitation with regards to effects processing and the limiter.
    My request for feedback is to determine if most people are barely pushing their 285GTX cards with 3 layers. Also it is to determine if you would purchase a Quadro card due to the limiter.I will forward this information to our contacts at Nvidia and Adobe to show them the limiter is completely uncalled for. That is the only way we are going to get this changed now or with the Fermi Geforce cards.

  • [svn] 4290: Bug: BLZ-288 - Consumer is only receiving first pushed message when Consumer and RemoteObject that is used to push the messages use different channel sets but same channel .

    Revision: 4290
    Author: [email protected]
    Date: 2008-12-11 14:24:37 -0800 (Thu, 11 Dec 2008)
    Log Message:
    Bug: BLZ-288 - Consumer is only receiving first pushed message when Consumer and RemoteObject that is used to push the messages use different channel sets but same channel.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * The bug app was arguably generating bogus test data (messages with duplicate ids), and 99.9% of applications won't be configured this way (using multiple ChannelSets with overlapping Channels, pointing at the same server) but it's still worth making this work just right anyways.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-288
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ConsumerMessageDispatcher.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • My iphone 4s will not allow me to open any apps that I have downloaded. I have tried a few things but still will not allow me to open. Shows they are open once pushing the home button twice. Please help!

    My iphone 4s will not allow me to open applcations that I have downloaded. I have tried a few things but still will not allow me to open. Shows they are open once pushing the home button twice. Please help!

    Pressing the Home button twice does not show you what apps are running. It shows you what apps were recently used.
    Download a free app from the App Store. Once it downloads, your other apps should work properly again.

  • I have a mac book pro.  It is 3 years old.  when I push the button to turn on the computer, it does not start.  The little light comes on, but the computer does not start up

    I have a macbook pro.  It is three years old.  It has been working perfectly fine.  However, as of yesterday, whenever I push the "on" button, the computer does not turn on.  The little light comes on indicating that the computer has started, but there is nothing on the computer screen, and it does not make the usually noise that it makes when it cycles on. 
    Any suggestions?

    Check the battery status to make sure it has a full charge (and that the charger is working). Then make sure the screen backlight is turned up.
    If the backlight is up then, try forcing the machine to shutdown (hold the power button for 5 - 10 seconds).  Then restart the computer(listen for the start up chime).
    If the computer does start up and you still cannot see anything reset the PRAM by forcing the machine to shut down (hold power button as before), then press the power button and start holding the key combo
    <Command>+<Option>+p+r
    until you hear the start up chime two or three times, then release the keys and allow to boot

  • My dvd drive won't open so I can insert a disc.  It has opened in the past by pushing the button on my mac

    I can't insert any dvd's because my dvd drive won't open when I push the open key.  It has always worked in the past.  Any suggestions on how to fix this?

    It's possible there is a CD/DVD in the drive that's stuck. Open Disk Utility in Applications/Utilities. Do you see a CD/DVD in the drive? Try ejecting using unmount.
    If that fails, restart and hold down the mouse button whe restarting.
    Other links:
    Kappy's Five ways to eject a stuck CD or DVD from the optical drive https://discussions.apple.com/thread/4795807
    Ds store's suggestion:  Reboot the computer holding the option key down, wait for the boot drive options to appear, then press the eject key on the keyboard. When it's out, then select your boot drive and click the arrow key to boot up.
    http://guides.macrumors.com/Force_Eject_a_Stuck_CD_or_DVD
    Hope this helps!

  • I accidentally pushed the cloud button next to a song that I didn't want and now I can't delete it... How do I delete it?

    I accidentally pushed the cloud button next to a song that I didn't want and now I can't delete it... How do I delete it?

    Hello Placencio,
    The song can be deleted by swiping the song, then tapping 'Delete.'
    iPad User Guide For iOS 7 Software
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf
    Cheers,
    Allen

  • IPhone 4s looks shut down all the time.especially when the 3g is on.in the forums its said to push the use button and the power button at the same time.the people calling me cannot reach at my phone.what should i do ?

    my phone looks like offline all the time.its all about me to notice that its offline.then i have to push the main button and the power button together to open it.then the apple sign comes on the screen and the phone turns online.but i cannot receive the information of who called me at the time that my iphone 4s turned offline by itself.i cannot receive messages at all.what can i do now ? i sent the phone to the service and they just told me that they installed the current version.but i guess nothing happened.its doing the same thing again.i cannot use my iphone.
    From Turkiye.

    I've tried all those.But nothing works.The phone seems to be shut down.But it is not.When i get it out of my pocket, for example to call someone, i touch to main button but nothing happens.I solve it by pushing the power button and the main button together just for a couple of seconds, as its said so in the forums.
    also, people told me that they were calling me, my phone was ringing but i didnt answer?...i checked it for millions of times, it seems to be shut down, but its normally not.then i push the buttons together and the apple sign comes on the screen.it searches for the network.and it works.
    but i do not see any calls, texts anything.but for the others, they say my phone seems to be workin.
    I thought it was 'cause of the 3G is switched on but when I turn 3G off, it does the same thing.it seems to be offline all the time.

  • My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    All devices signed into the same iCloud account will finish up with the same contacts. Of course if prior to joining iCloud two family members each had an entry for Uncle Fred, then you will finish up with two contact cards for Uncle Fred, and so on. If you tidy this up on your computer then the changes will propagate to everyone else.

  • HT6162 My phone will not let me download the most recent update for iOS 7.1. It says I need a wifi connection and will not allow me to push the 'Download & Install' button, even when I am at home and my wifi is on. How do I fix this?

    My phone will not let me download the most recent update for iOS 7.1. It says I need a wifi connection and will not allow me to push the 'Download &amp; Install' button, even when I am at home and my wifi is on. How do I fix this?

    Unfortunately yes, though technology would never move on if it kept to older standards and did not strive to do more.
    The app store always gives you the option to use a previous version of the app IF it is available for your device.
    Sorry but you are stuck without new hardware.
    PJRS

  • How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    How many times can i use the limited warranty on my Apple iPhone 5, I just broke mine after getting a brand new one. Also, can I extend my warranty?

    If you purchased AppleCare + within 30 days of getting your iPhone 5 you are allowed 2 instances of breakage replacement with a $49 deductible. If you do not have AppleCare + accidental breakage is not covered under you warranty, you can do an out-of-warranty replacement for $229.

  • Ipad - how to push Exchange calendar events to iCloud account? MobileIron is used to get Exchange data -- is there an app to push the ipad version of the events to iCloud?

    ipad - how to push Exchange calendar events to iCloud account? MobileIron is used to get Exchange data -- is there an app to push the ipad version of the events to iCloud?
    There are two separate calendars on ipad (ios 7.1) one for icloud, one fo exchange. I have tried a couple of calendar apps and while they do a good job of showing the events in the app - they don't push (synch) back to iCloud. Any thoughts on an app that will take my ipad calendars and synch them to a single icloud calendar/account?
    Thanks

    Hi
    You asked about a recommendation for an app to paste a group of addresses into the To, Cc or Bcc fields of an email?
    Our "MailShot Pro" app is the only one we know of on the App Store that creates special "group contacts" in your address book which contain all your groups email addresses, but can be used just like regular contacts from most of your favourite apps. We now have nearly 50000 people using it, and growing steadily every day.
    Here is a link if you would like to know more “MailShot Pro” (itunes link).
    A free version is also available if you'd like to try it out with a small nmber of contacts.
    If you need any customer support just contact us at the website, we're always happy to help.
    Peter
    www.solubleapps.com
    Disclosure: I am the developer of this app and may benefit from its sale- (but so might you)

Maybe you are looking for

  • Captured Clips have no sound

    Hey all. I worked on a project a while ago and I recently back to it. When I opened my project file and went to look at the clips I wanted to work on I noticed that the clips had image but no sound. I went to the original capture scratch clip and tha

  • How to Stop Thread Within TestStand

    I am a relative "newbie" to TestStand in this aspect.  I am creating an sequence to generate CAN Bus Traffic in hopes of getting to a more accurate throughput measurement.  The Subsequence I am creating is a designed infinite loop and I am specifying

  • AT commands and Com port

    Connection to the com port is ok and i can send AT commands. But i need to make a few AT commands one after another. And i think i am getting errors..anyone can help?                     outputStream.write("AT+CMGF=0\r".getBytes());                  

  • Help-Is 9ias a necessity even for client server deployment of forms6i

    Hi Is 9Ias a necessity even for client server deployment of forms6i using developerSuite. I have been told that Oracle no longer markets Forms Server? Ganesh.

  • BT time to pull your socks up

    Open Post for any BT 'moderators' ... The UK is now populating with a huge number of SMART TV's .. On my Samsung since release the number viewing Apps has grown considerably ... ITVplayer, BBCiplayer, Chn5 player   etc. You have adverts on TV every d