RE: Get Monitor Size
Hi, there,
I want to get monitor size in my JFrame class, which method should I call? Can somebody help me out?
Thank you very much in advance,
Xin
Toolkit tk = getDefaultToolkit();
Dimension dim = tk.getScreenSize();
this.setSize(dim.getWidth(), dim.getHeight());
or
this.setSize(dim);
should work as well I think.
Similar Messages
-
I need to get a report that will list the Monitor Size. How do i do that with ARD
You can get the monitors resolution through the System Overview Report. But if you mean the monitor's physical size - 17", 19", etc. - then you can't since that information isn't reported by the monitor to the computer (on any computer system, to the best of my knowledge). You could get the monitor's model number (so you could look up the size) by running the UNIX command
system_profiler
on each system which would return the display's model number from which you could then look up the physical specs from the manufacturer's web site. -
div box gets relocated depending on browser and monitor size. HELP!!!!!!!!!!!
This is usually caused by malformed HTML, CSS and/or the use of absolute positioning in primary layouts. Without a link, it's all guesswork on how to fix it though.
Nancy O. -
I want to make my background appear in the same spot and size on every monitor size
Hello,
I am adding a background to my site, and on my monitor it appears in the right dimentions. However, when I zoom out or in on my monitor the background changes sizes. How do I keep it in one position and the same size the entire time despite the monitor size? Here is my code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
@import url("footer.css");
html {
background-color: #000000;
background-attachment: fixed;
background-repeat: no-repeat;
background-color: #000;
background-image: url(Background.jpg);
.footer p a {
color: #CCC;
body {
width: 1041px;
margin: auto; /* keeps the page centered */
font-family: Arial, Helvetica, sans-serif;
padding-top: 0px;
background-repeat: no-repeat;
background-color: #000;
background-attachment: fixed;
a {
color: #8A0404;
text-decoration: none;
a:hover {
color: #FFFFFF;
.header {
height: 150px;
background-image: url(headernew.png);
width: auto;
float: none;
background-color: #000;
background-repeat: no-repeat;
padding-top: 0px;
clip: rect(auto,auto,auto,auto);
.header .nav {
width: 450px;
float: right;
margin-top: 55px;
text-align: right;
.header .nav span {
font-size: 12px;
font-weight: bold;
color: #8a0404;
margin-left: 25px;
.navbar {
background: #FFFFFF;
line-height: 35px;
margin: auto;
width: 170px;
float: right;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
bottom: 120px;
position: relative;
height: 55px;
right: 55px;
.navbar .nav {
width: 50%;
float: left;
.content {
background: #FFFFFF;
.aside {
width: 330px;
float: right;
color: #8a0404;
padding-top: 10px;
background-color: #000000;
.section.main {
background: #FFFFFF;
width: 700px;
float: left;
bottom: 0px;
padding-bottom: 15px;
.article {
min-height: 400px;
text-align: justify;
background-color: #FFFFFF;
background-repeat: repeat-y;
padding-top: 0px;
padding-right: 20px;
padding-bottom: 0px;
.centertxt {
text-align: center;
.righttxt {
text-align: right;
padding-right: 15px;
img.center {
display: block;
margin: auto;
.section.main .article h3 {
text-align: center;
font-style: italic;
color: #97222B;
font-size: 30px;
.footer {
font-size: 11px;
text-align: center;
width: 100%;
background-color: #000;
border-top-width: 5px;
border-top-style: solid;
border-top-color: #000;
border-right-color: #000;
border-bottom-color: #000;
border-left-color: #000;
position: relative;
left: 0px;
bottom: 0px;
clear: both;
color: #CCC;
border-bottom-width: 2px;
border-bottom-style: solid;
margin-right: auto;
margin-left: auto;
.signature {
position: relative;
</style>
<link rel="stylesheet" href="dakevid_videolb/overlay-minimal.css"/>
<link rel="stylesheet" type="text/css" href="banner_files/banner-rotator.css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<link href="footer.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script type="text/javascript" src="banner_files/jquery.banner-rotator.min.js"></script>
<script type="text/javascript">
$(window).load(function() {
$("#JQBannerRotator2").fdBannerRotator({keyboardEnabled:true,frameShadowEnabled:true,slide Width:700,slideHeight:300,slideScaleMode:"none",slideTransition:{type:"fade",duration:300, easing:"easeOutQuad"},slideDuration:3000,slideAutoplay:true,slidePauseOnHover:true,timerPo sition:"top",timerVisible:false,captionAnimationSpeed:500,captionAnimationEasing:"easeOutQ uad",controlDirectionEnbled:true,controlDirectionHide:true,controlPlayEnabled:true,navigat ionEnabled:true,navigationPositionTop:240,navigationPositionMargin:10,navigationAlign:"rig ht",navigationThumbEnabled:true,navigationThumbServerScipt:"",navigationThumbSearch:".jpg" ,navigationThumbReplace:"_thumb.jpg",navigationThumbWidth:150,navigationThumbHeight:65,nav igationThumbAnimationSpeed:200,navigationThumbAnimationEasing:"easeOutQuad"});
</script>
<body marginwidth="auto" marginheight="auto">
<div class="header"></div>
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="news.html">News</a></li>
<li><a href="http://www.xcelonlinestore.com/collections/kyle-dake-official-merchandise" target="_new">Merchandise</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Media</a>
<ul>
<li><a href="video_gallery.html">Videos</a></li>
<li><a href="photo_gallery.html">Photos</a></li>
</ul>
</li>
<li><a href="events.html">Events</a></li>
<li><a href="sponsors.html">Sponsors</a></li>
<li><a href="representation.html">Representation</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
<div class="navbar"><iframe src="http://free.timeanddate.com/countdown/i3zg3ync/n35/cf12/cm0/cu3/ct0/cs0/ca0/cr0/ss0/cacfff /cpc000/pc000/tcfff/fs90/szw320/szh135/tatCountdown%20To/tacfff/tptTime%20since%20Event%20 started%20in/tpc000/matThe%20World%20Championships/macfff/mpc000/iso2014-08-26T00:00:00/pa 5" frameborder="0" width="214" height="75"></iframe>
</div>
<div class="content">
<div class="section main">
<div id="JQBannerRotator2" class="JQBannerRotator">
<div class="overlay"></div>
<ul class="data">
<li><img class="slide" src="banner_files/slides/lansing.jpg" alt=""/></li>
<li><img class="slide" src="banner_files/slides/eiwa.jpg" alt=""/></li>
<li><img class="slide" src="banner_files/slides/coaching.jpg" alt=""/></li>
</ul>
</div>
<div class="article">
<h3>Welcome to KyleDake.com</h3>
<p><img src="test.png" width="323" height="441" hspace="20" align="left">Hey Guys! Thanks for visiting my website. I hope you find what you are looking for, whether it be clothes and merchandise, information, or inspiration! I want to thank you for supporting me and my dreams as I am chasing them down every day. The fans are one of the most important parts of what I do, I hope everything I have done and will do benefits someone somewhere. Make sure you are chasing your dreams every second you breathe.<span class="signature"><img src="Signature2.png" width="203" height="109" align="right"></span></p>
<p> </p>
</div>
</div>
<div class="aside">Follow Kyle on Twitter | Check out Kyle's Facebook Page</div>
<div class="aside">
<p class="righttxt"> </p>
<p class="righttxt"><a class="twitter-timeline" href="https://twitter.com/kyledake444" data-widget-id="423108832919695363">Tweets by @kyledake444</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getE lementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.j s";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
</div>
</div>
<div id="footer">
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
<div class="footer">
<p>All Rights Reserved 2013 X-Cel Worldwide | © Kyle Dake 2013 | This is the official Kyle Dake Website | Web Design <a href="http://www.riccioproductions.com/" target="_new">Riccio Poductions</a> | </p>
<a href="http://www.cfathletic.com/" target="_new"><img src="cf.png" width="83" height="40" border="0"></a><a href="http://www.milwaukeetool.com/" target="_new"><img src="mil_tools.png" width="81" height="55" border="0"></a><a href="http://www.ai-sport.com/ai-performance/ai-performance-wrestling" target="_new"><img src="ai_wrestling.png" width="228" height="47" border="0"></a></div>
</body>
</html>
Thanks!!It works in everything except IE, which it notes so I knew that going in. Any thoughts on how to fix it up? Here's the site again:
http://www.kyledake.com/testindex.html -
Recently upgraded to 2012 from 8. Cannot get Monitor to work. I can browse to the 8200 port and get a blank webpage. The individual web pages for the POA, GWIA, MTA, Webaccess and DVA all work. This is on SLES 11.1. Maybe it is not supposed to work. If that is the case the Admin Documentation is not clear, since it says somethings only work with a Windows install and implies that other components will still work with SLES. [I did initially have a problem with the DVA monitor where the IP address did not get written to the config file, so something along the same lines may have gone wrong on install.] Thanks.
Here is a little more detail, although as mentioned, if I attempt to reinstall, I get a report that the rpm items are installed already:
rpm -qip novell*.rpm
Name : novell-groupwise-gwmon Relocations: /opt
Version : 12.0.0 Vendor: Novell, Inc.
Release : 98586 Build Date: Tue 17 Jan 2012 04:44:51 AM CST
Install Date: (not installed) Build Host: GW-Asc-LX.provo.novell.com
Group : Applications/Communications Source RPM: novell-groupwise-gwmon-12.0.0-98586.src.rpm
Size : 44534456 License: 1993-2008 Novell, Inc.
Signature : (none)
URL : NOVELL Worldwide
Summary : Novell GroupWise Monitor Agent
Name : novell-groupwise-monitor Relocations: /opt /var/opt /etc/opt
Version : 12.0.0 Vendor: Novell, Inc.
Release : 98586 Build Date: Tue 17 Jan 2012 04:45:03 AM CST
Install Date: (not installed) Build Host: GW-Asc-LX.provo.novell.com
Group : Applications/Communications Source RPM: novell-groupwise-monitor-12.0.0-98586.src.rpm
Size : 1790267 License: 1993-2008 Novell, Inc.
Signature : (none)
URL : NOVELL Worldwide
Summary : Novell GroupWise Monitor -
How to get the size of the table
Hi All,
How to get the size of the table in Oracle 10g?
Is there any script which needs to be run?
Regards,
ApoorvHi All,
Sorry but somehow the table user_segments is not populated in my case. But we have another table SYS.ALL_TABLES whose structure is given below. Would I be able to calculate the table size based on the columns given below:
ColumnName Data Type
OWNER VARCHAR2 (30 Byte)
TABLE_NAME VARCHAR2 (30 Byte)
TABLESPACE_NAME VARCHAR2 (30 Byte)
CLUSTER_NAME VARCHAR2 (30 Byte)
IOT_NAME VARCHAR2 (30 Byte)
STATUS VARCHAR2 (8 Byte)
PCT_FREE NUMBER
PCT_USED NUMBER
INI_TRANS NUMBER
MAX_TRANS NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
FREELISTS NUMBER
FREELIST_GROUPS NUMBER
LOGGING VARCHAR2 (3 Byte)
BACKED_UP VARCHAR2 (1 Byte)
NUM_ROWS NUMBER
BLOCKS NUMBER
EMPTY_BLOCKS NUMBER
AVG_SPACE NUMBER
CHAIN_CNT NUMBER
AVG_ROW_LEN NUMBER
AVG_SPACE_FREELIST_BLOCKS NUMBER
NUM_FREELIST_BLOCKS NUMBER
DEGREE VARCHAR2 (10 Byte)
INSTANCES VARCHAR2 (10 Byte)
CACHE VARCHAR2 (5 Byte)
TABLE_LOCK VARCHAR2 (8 Byte)
SAMPLE_SIZE NUMBER
LAST_ANALYZED DATE
PARTITIONED VARCHAR2 (3 Byte)
IOT_TYPE VARCHAR2 (12 Byte)
TEMPORARY VARCHAR2 (1 Byte)
SECONDARY VARCHAR2 (1 Byte)
NESTED VARCHAR2 (3 Byte)
BUFFER_POOL VARCHAR2 (7 Byte)
ROW_MOVEMENT VARCHAR2 (8 Byte)
GLOBAL_STATS VARCHAR2 (3 Byte)
USER_STATS VARCHAR2 (3 Byte)
DURATION VARCHAR2 (15 Byte)
SKIP_CORRUPT VARCHAR2 (8 Byte)
MONITORING VARCHAR2 (3 Byte)
CLUSTER_OWNER VARCHAR2 (30 Byte)
DEPENDENCIES VARCHAR2 (8 Byte)
COMPRESSION VARCHAR2 (8 Byte)
DROPPED VARCHAR2 (3 Byte) -
The 'Monitor Size' setting could do with an update
This isn't the most important issue in the world, but I did notice that the 'Monitor Size' setting in Frame 11 (Edit > Preferences > Global > General > Monitor Size) hasn't changed for years.
It's used so that when you have your screen set to 100% zoom, it matches the real paper world in size.
But - it just has a drop-down for 'diagonal width" monitor size which assumes a 4:3 aspect ratio (as per old CRT monitors) and only goes up to 22". I'm currently typing on a 23" 'widescreen' (16:9) monitor so I don't think that diagonal width drop-down is going to do much useful for meI presume this setting wasn't fixed in FM12, and still assumes a quaint single-screen 4:3 aspect ratio.
Back when computers were slower, and I was doing a lot of work with relatively high res TIFFs, I figured out that if I set Monitor Size and zoom levels carefully, I could get specific zoom levels to render raster images at exact integer multiples or fractions of the video card's frame buffer raster dimensions. I found that this made a huge difference in display & refresh performance. At 1:1, doing so apparently eliminated resampling of the image data entirely. At integer 1:N or N:1, it apparently minimized the computation required, and minimized artifacts.
This sort of consideration is less important today, but it would be nice to get the parameter fixed, or at least publish a FAQ on how to game the 4:3 assumption for 16:9, 16:10 and 21:9 monitors, as well as arbitrary multi-monitor configurations. -
Hi hows it going!
My name is John
My question is how do i get my site to stretch and stay consistant to various monitor sizes?
I constantly have to crt+ to resize on different screens.John,
If you use a relative width (100% width instead of a fixed value in px), the site/pages will adapt to the currently available width.
To get more, or better, answers, you may consider posting in the Web Design forum,
http://forums.adobe.com/community/design_development/webdesign?view=discussions
or the forum for your application,
http://forums.adobe.com/index.jspa -
Monitor size will be a problem?
Dear all,
Am developing a application using mouse-events. I generate some click events on some particular controls automatically. So if i use that particular application in some other system with a different monitor size will there be any problem?
Earlier response is much appreciated.
Thanks,
Mathan
Solved!
Go to Solution.Hi mathan,
with the user32.dll function "GetWindowRect" you can read the position of the window, on which you want create an event. To this position you can add the position to where you want to move the mouse. The attached example shows hao to get the coordinate of the specified window.
Why do you use the x and y positions? You can send a key pressed to a specified button without moving the mouse to this position.
Mike
Attachments:
GetPosition_LV80.zip 31 KB -
How can I get the size of a file with apple script
I try to get the size of a file within an apple script. But I did not find information how to do this.
There are two ways. I think Apple is moving toward using System Events, which is listed first.tell application "Finder"
set myFile to selection as alias
--this just gets a file for me to work with
--coercing it into an alias is required for the other functions
end tell
tell application "System Events"
get size of myFile
end tell
set myInfo to (info for myFile)
get size of myInfo -
Hello
How can I get the size of a model (from a *.w3d-file). The
model does not contain the properties width, height or length, so I
guess that I have to measure the distance between the models
vertices.
But I can't seem to think of a good way to do it in. I guess
a loop of some kind? But it would seem rather unomptimized to
actually loop through each and every vertex point in the model I
wan't measured.
Any suggestions?The closest thing to model's dimensional properties is the
model's boundingSphere property. It gives a radius of an imaginary
sphere that contains all the vertices of the model; the sphere's
diameter is the distance between the two farthest-apart vertices.
However it includes the model's children in the sphere. Set
yourModel.debug = TRUE to see it.
You could loop through each model, add a mesh deform
modifier, go through each mesh[ ].vertexlist, keep track of each
max and min x, y, and z value, the calculate w, l, h from that. It
would take a little time... you probably wouldn't want to do it
every frame. But you could do it on a keypress or something. -
When moving around on websites, somehow I manage to shrink the size of what is shown on the screen. I have not figured out how to get the size back to 'normal'. However, Firefox remembers this so when I reenter this particular size, it will still be in the smaller format. Very frustrating and as this has happened for at least two of my most watched sites, I am more and more using competing formats, e.g. Explorer.
I have alsl asked more experienced users of Internet to try to solve this but they are as lost as I am.
Looking forward to getting your advice.
Best regards,
Lars HenrikssonYou can hit CTRL++ to zoom. Or install these add-ons:
https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
https://addons.mozilla.org/en-US/firefox/addon/zoom-page/ -
Found that all the SQL servers are getting monitored, expect few servers which are having SQL server 2012 role.
proxy is enabled for these servers, when I checked discovered inventory for SQL 2012 database unable to find these servers in that list.
and other servers having SQL Server 2012 monitoring properly issue is with only few servers.Hi,
thanks for the all the input, we are using service account as windows account instead of action account !!
will that also affect discovery of SQL role?
and also found that there are many alerts in SCOM console, with alert description :
SQL Server cannot authenticate using Kerberos because the Service Principal Name
(SPN) is missing, misplaced, or duplicated.
please let me know how we can resolve this issue, will it affect SQL discovery as well ? -
Where would i get Batch Size in SAP BI and what is the cocept of Batch Size
<heading 4>
Dear Experts,
I have to create a report on batch size adherence i.e. Actual Vs. Standard Batch Size Deviation,but i am unable to find batch size in sap R/3 AFKO & APPO tables and was unable to find it in material master too.
Please suggest me what is the concept of batch size?where can i get batch size in sap R/3? and in what cube there are chnaces that i will get it on Bi side.
Regards,
Beginer
</heading 4>Hi,
The dswsbobje web application (war file) is mentioned in SAP IK XI 3.1 install guide to explain how to get the SAP authentication option available in Business Objects products such as Live Office, which use web services to log on to BusinessObjects Enterprise.
The source files for various Business Objects web applications are available in "businessobjects_root\BusinessObjects Enterprise 12.0\java\applications\" folder. Refer to "Deploying the web applications using wdeploy" section in SAP IK XI 3.1 install guide to see how to repackage those web apps and deploy them using wdeploy tool.
Regards,
Boris -
How do I get the size of a file on a server with an Applet
Hei,
I have a problem. I have some files that I need to read in with InputStream to get an Array of bytes. The Applet and the files are on the same server.
My Prob is, that when I use
URL(daFile).getFile().getSize();
it only gives the inaccurate size from the dirlisting (i.e. 48 for 48k)
So I can not build an array with the correct Size.
Does anyone knows how I get the correct size of a file.
Big thx
LoCalAppler can open connections to server it was downloaded from. You don't need such complicated API as RMI... Just simple java server listening for queries.
Like this:
Applet:
1. take a file path
2. connect to simple server (gives OutputStream and InputStream)
3. create ObjectOutputStream and send fiel to server (File is serializable)
4. Read String with size from input stream
Server
1. Wait for connection
2. When client connected create ObjectInputStream and expect File instance
3. Get file size
4 Replay with String with size
Like this...
Maybe you are looking for
-
"Was not copied...cannot be played on this iPod."
For some reason I cannot copy some of my songs to my iPod touch for I don't know what reason. The file is not corrupt, the file is there, plays in itunes and its an MP3 format, file isn't to big and I still have 29GB left. Try to transfer it over and
-
How do I save a pages doc to mobile me cloud
It seems this would be simple. But I can't figure out how to do it. I save everything to it when using my laptop and it has saved me from losing important documents when my laptop crashed. Any help is appreciated. thanks, Joe iPad 2 Pages
-
Idoc adapter - No service for a system in Integration directory
Hi, I'm trying to send a custom IDOC from an R3 system to an XI instance. All settings that I can see using transactions IDX1 IDX2 and IDX5 seems to be correct, but the IDOC doesn't reach the IS. SM58 in the sender system reports the error: "No servi
-
Hi Friends, I have nearly 5 years of experiance in SAS ETL and Reporting. Looking at the market, i want to move over to SAP, I am good in programming as well thanks to Proc sql in SAS. So what in SAP? ABAP AND BI? SAP BI/BO OR BI/HANA? ABAP AND HANA?
-
Revision: 11376 Author: [email protected] Date: 2009-11-02 11:39:44 -0800 (Mon, 02 Nov 2009) Log Message: Remove external image support from BitmapImage and BitmapFill. QE notes: none Doc notes: ASDoc updated. Any other docs that mention loadin