fullscreen

Why does my Java application run so slowly in full-screen mode? (and fine when windowed)

我的未来我决定 提交于 2019-11-27 08:35:41
问题 I'm working on a Java program that is intended to run in full-screen mode. It uses numerous of customized Swing components and Java2D-drawn components that need to be updated and repainted several times a second. And it was working relatively fine on my underpowered work PC. But then I tried it out at home on my much more powerful PC. And it ran noticeably slower. Triggering an event that should have instantly updated about 20 different screen elements instead caused an effect where each

Stopping the use of Tab/Alt-F4 in a full-screen program in Java/Swing

这一生的挚爱 提交于 2019-11-27 08:32:38
I need a way to stop people using other programs while my Java program is running. i.e stopping people switch tabs and pressing Alt-F4. To make the program full screen use; window.setExtendedState(Frame.MAXIMIZED_BOTH); //maximise window window.setUndecorated(true); //remove decorations e.g. x in top right And to make the window always on top use(To stop people using other running programs); window.setAlwaysOnTop(true); You're not going to be able to do this at the Java level - you'll need to put the operating system into a "Kiosk Mode" of some kind. Unsolicited commentary - Do you need this

Android-Video View in Fullscreen

徘徊边缘 提交于 2019-11-27 07:36:31
I am trying to make this VideoView to appear in full screen mode : public class ViewVideo extends Activity { private String filename; private static final int INSERT_ID = Menu.FIRST; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); System.gc(); Intent i = getIntent(); Bundle extras = i.getExtras(); filename = extras.getString("videofilename"); VideoView vv = new VideoView(getApplicationContext()); setContentView(vv); vv.setVideoPath(filename); vv.setMediaController(new MediaController(this)); vv.requestFocus(); vv.start(); } @Override public

Creating a dot/pixel outside of a JFrame, any location on the screen

半世苍凉 提交于 2019-11-27 07:26:39
问题 I would like the be able to display points on the screen for my Java application. At some point I want to be able to let the user move the points and drag them around. Currently I am having trouble trying to draw a single dot/pixel on the screen outside of a JFrame. Any ways to draw outside of your JFrame area? 回答1: You might create a full screen JFrame with full transparency, and draw to a panel or image on that. Much like this, which uses a custom panel to create a 'flashlight' effect for

Making Winforms Fullscreen

时光怂恿深爱的人放手 提交于 2019-11-27 07:15:27
问题 I need to make a winform full screen. This is what i found online. 1. Hook WinProc to catch WM_SYSCOMMAND 2. Check wParam == SC_MAXIMIZE and then 3. Set my windiw's attributes Me.ResizeMode = ResizeMode.NoResize Me.WindowStyle = WindowStyle.None Me.WindowState = WindowState.Maximized I am fairly new to vb.net and do not know how to do Steps 1 or 2. Can someone give me a snippet or point me in the right direction? Thanks giodamelio 回答1: The trick is to obtain the HwndSource and call its

How to stop a requestAnimationFrame recursion/loop?

♀尐吖头ヾ 提交于 2019-11-27 06:39:37
I'm using Three.js with the WebGL renderer to make a game which fullscreens when a play link is clicked. For animation, I use requestAnimationFrame . I initiate it like this: self.animate = function() { self.camera.lookAt(self.scene.position); self.renderer.render(self.scene, self.camera); if (self.willAnimate) window.requestAnimationFrame(self.animate, self.renderer.domElement); } self.startAnimating = function() { self.willAnimate = true; self.animate(); } self.stopAnimating = function() { self.willAnimate = false; } When I want to, I call the startAnimating method, and yes, it does work as

App not using full height of iPhone 5

这一生的挚爱 提交于 2019-11-27 05:53:05
问题 I have an App that was created a long time ago and updated it to use Storyboards. All the views have been rebuilt and hooked up. However, the App does not use the entire height of an iPhone 5, even though in Storyboards, it shows they adjust based on the size of the screen. In fact, none of the startup screens show up at launch. It's just a black screen. I do have a full size startup image appropriately sized and named. And it shows up in the General tab of the settings. Am I missing a

Internet Explorer full screen mode?

回眸只為那壹抹淺笑 提交于 2019-11-27 05:19:52
I am building a web based free dynamic news reader (aka "autoplay" feature), that you can test it from here: http://www.fivetechsoft.com/news and I would like to implement a button to fullscreen it. Any hints? Please notice that only IE is supported by now. Other browsers support comming soon. DMeier This will simply send F11. Will be good enough for IE with weak security settings. This is something you might want to keep for internal use only, though: <script type="text/javascript"> function max() { var wscript = new ActiveXObject("Wscript.shell"); wscript.SendKeys("{F11}"); } </script>

How to call setUndecorated() after a frame is made visible?

吃可爱长大的小学妹 提交于 2019-11-27 05:00:00
In my Swing application, I want the ability to switch between decorated and undecorated without recreating the entire frame. However, the API doesn't let me call setUndecorated() after the frame is made visible. Even if i call setVisible(false) , isDisplayable() still returns true. The API says the only way to make a frame not-displayable is to re-create it. However, I don't want to recreate the frame just to switch off some title bars. I am making a full-screenable application that can be switched between fullscreen and windowed modes; It should be able to switch while maintaining the state,

Full screen Windows Form goes beyond screen dimensions

风格不统一 提交于 2019-11-27 04:51:22
问题 I have a WinForms app (.NET 4) that needs to be shown either full screen or maximized without borders. Using the following code in the Form_Shown event: #if (DEBUG) var debug = true; #else var debug = false; #endif this.Text = ""; this.ControlBox = false; this.ShowInTaskbar = true; //this.TopMost = debug; this.TopLevel = true; this.FormBorderStyle = FormBorderStyle.None; if (debug) { this.Bounds = Screen.FromControl(this).WorkingArea; } else { this.WindowState = FormWindowState.Maximized; }