fullscreen

JFrame in full screen Java

我们两清 提交于 2019-11-26 11:17:37
I will be doing a project soon and I will have to use full screen mode in it. It will draw some graphics in the window. It would be convienient if I use JFrame or something similar. I don't know what the final resolution of the screen will be. Please tell me if the graphicss will be automaticly rescaled? JFrame jf = new JFrame(); jf.setSize(1650,1080); //make it fullscreen; //now is everything is going to be rescaled so it looks like the original? Reimeus Add: frame.setExtendedState(JFrame.MAXIMIZED_BOTH); frame.setUndecorated(true); frame.setVisible(true); Paul Vargas If you want put your

Going fullscreen on secondary monitor

有些话、适合烂在心里 提交于 2019-11-26 10:45:33
问题 How can you program a dotNet Windows (or WPF) Application in order to let it going fullscreen on the secondary monitor? 回答1: Extension method to Maximize a window to the secondary monitor (if there is one). Doesn't assume that the secondary monitor is System.Windows.Forms.Screen.AllScreens[2]; using System.Linq; using System.Windows; namespace ExtendedControls { static public class WindowExt { // NB : Best to call this function from the windows Loaded event or after showing the window //

JavaFX fullscreen - resizing elements based upon screen size

北慕城南 提交于 2019-11-26 09:38:14
问题 Is there any way to make fullscreen(and if possible resizing too) to instead of rearranging everything (actually what it does is to rearrange the elements like resizing but to the whole screen) to make an actual fullscreen mode? (like games that what usually do is change screen resolution), so that buttons and text grows accordingly to the size of the screen/window Also how can I remove the message and the effect on click the \"esc\" key to exit the fullscreen mode? EDIT: use this way to make

Easy way to hide system bar on Android ICS

倾然丶 夕夏残阳落幕 提交于 2019-11-26 08:19:33
问题 I will give my ICS tablets for users to complete a survey so I would like the user to work with my app only. They should not be able to switch to the home screen, press back buttons etc., so I would like to hide the system bar completely. My tablet is rooted and I know some application like this can help me, but I don\'t need all the extra functions of this app. I found this tutorial that could help me, but if I can add the code to do my own, it would be great. 回答1: HideBar has a kiosk mode

Take screenshot of DirectX full-screen application

*爱你&永不变心* 提交于 2019-11-26 08:09:01
问题 This boggles me. DirectX bypasses everything and talks directly to the device driver, thus GDI and other usual methods won\'t work - unless Aero is disabled (or unavailable), all that appears is a black rectangle at the top left of the screen. I have tried what other have suggested on several forums, using DirectX to get the back buffer and save it, but I get the same result: device->GetFrontBufferData(0, surface); D3DXSaveSurfaceToFile(\"fileName\", D3DXIFF_BMP, surface, NULL, NULL); Is

Full-screen responsive background image

本小妞迷上赌 提交于 2019-11-26 07:59:43
问题 I am very new to Front-end development and Foundation. I am trying to get <div class=\"main-header\"> to be a full screen image that scales down responsively. Can anyone tell me what I am doing wrong? It is scaling properly, but is not showing the full image. I also wanted the <div class=\"large-6 large-offset-6 columns\"> to sit above it on a mobile device – is that possible? The HTML: <!-- MAIN HEADER --> <div class=\"main-header\"> <div class=\"row\"> <div class=\"large-6 large-offset-6

Overlaying on a 3D fullscreen application

本小妞迷上赌 提交于 2019-11-26 07:23:58
问题 I want to display some custom graphics on top of a 3rd party fullscreen Windows application. Have you played any Steam games? It has an executable, GameOverlayUI.exe that lets you access Steam windows from within a game. (The GUI elements look custom-drawn, I don\'t know if that is a necessity; but they look exactly the same inside a game as they do on the desktop.) It even goes as far to \'dim\' the game graphics in the background. I\'m wondering how one could go about writing such an

Chrome Fullscreen API

偶尔善良 提交于 2019-11-26 06:59:21
问题 According to this article Google Chrome 15 has a fullscreen JavaScript API. I have tried to make it work but failed. I have also searched for official documentation in vain. What does the fullscreen JavaScript API look like? 回答1: The API only works during user interaction, so it cannot be used maliciously. Try the following code: addEventListener("click", function() { var el = document.documentElement, rfs = el.requestFullscreen || el.webkitRequestFullScreen || el.mozRequestFullScreen || el

Hide ICS back home task switcher buttons

假如想象 提交于 2019-11-26 06:30:50
问题 Just wondering how to hide the ICS back/home/etc software buttons programmatically. Just like the Youtube apps does when playing a video. I want to hide them while a video is playing, but bring them up if the user taps the screen. I can\'t seem to find it anywhere on the web, or in Google\'s documentation. 回答1: try to setup a Full screen window with flag SYSTEM_UI_FLAG_HIDE_NAVIGATION 回答2: pinxue is spot-on... you want SYSTEM_UI_FLAG_HIDE_NAVIGATION. Example: myView.setSystemUiVisibility(View

Hiding Title in a Fullscreen mode?

戏子无情 提交于 2019-11-26 06:26:22
问题 Is there a way to hide the window title so that it won\'t get shown in fullscreen mode ( getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN) ) but then will appear upon getWindow().clearFlags(LayoutParams.FLAG_FULLSCREEN) ? requestWindowFeature(Window.FEATURE_NO_TITLE) is not an option of course as this won\'t allow to get it back. 回答1: The way I handle this in my Android games is to call the following line in the onCreate() of my Activity requestWindowFeature