473,804 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

system information with GUI boxes

1 New Member
I really would appreciate some help on this assignment. I need to make GUI boxes to display the system info such as on Microsoft Office. I have some code but not sure where to go with the rest of it. Help please. I will also include instructions that I was given.. I am working in JGrasp environment with Java.

In order to tuning programs to meet the hardware requirements and provide optimal performance, it is very important to retrieve system information for every program. In this assignment, you need to print out system information including:
a. Display mode
Width
Height
Bit depth
Refresh rate
b. OS information
Name
Version
Architecture
c. User information
Name
Country
Language
Home directory
Working directory
d. Java information
Java version
Installation path
Class path
Vendor
Vendor URL
e. Java Virtual Machine information
Total VM memory
Max VM memory
Free VM memory
f. CPU information
processor
vendor_id
model name
cpu MHZ
cache size
g. Physical memory information
MemTotal
MemFree
Buffers
Cached

To implement (a), you need to write codes like:

//The following codes are used to get display mode
GraphicsEnviron ment ge = GraphicsEnviron ment.getLocalGr aphicsEnvironme nt();
GraphicsDevice[] gs = ge.getScreenDev ices();
for (int j = 0; j < 1 /* gs.length */; j++) { //Only one display
DisplayMode dm = gs[j].getDisplayMode ();
int width = dm.getWidth();
int height = dm.getHeight();
int bitdepth = dm.getBitDepth( );
int refreshrate = dm.getRefreshRa te();
}

To implement (b) to (e), you need to write codes like:

//The following codes are used to get OS information
System.out.prin tln("Current OS Information");
System.out.prin tln("Name " + System.getPrope rty("os.name")) ;
System.out.prin tln("Version " + System.getPrope rty("os.version "));
System.out.prin tln("Architectu re " + System.getPrope rty("os.arch")) ;
//for others, you should check System.getPrope rty of JAVA.

To implement (f) and (g), you need to get information from two files (included in the assignment): \proc\cpuinfo and \proc\meminfo, and use StringTokenizer to retrieve required information from these two files.


It seems really simple but I feel I am just not knowledgeable enough to grasp it.
Sep 28 '06 #1
1 4740
r035198x
13,262 MVP
I really would appreciate some help on this assignment. I need to make GUI boxes to display the system info such as on Microsoft Office. I have some code but not sure where to go with the rest of it. Help please. I will also include instructions that I was given.. I am working in JGrasp environment with Java.

In order to tuning programs to meet the hardware requirements and provide optimal performance, it is very important to retrieve system information for every program. In this assignment, you need to print out system information including:
a. Display mode
Width
Height
Bit depth
Refresh rate
b. OS information
Name
Version
Architecture
c. User information
Name
Country
Language
Home directory
Working directory
d. Java information
Java version
Installation path
Class path
Vendor
Vendor URL
e. Java Virtual Machine information
Total VM memory
Max VM memory
Free VM memory
f. CPU information
processor
vendor_id
model name
cpu MHZ
cache size
g. Physical memory information
MemTotal
MemFree
Buffers
Cached

To implement (a), you need to write codes like:

//The following codes are used to get display mode
GraphicsEnviron ment ge = GraphicsEnviron ment.getLocalGr aphicsEnvironme nt();
GraphicsDevice[] gs = ge.getScreenDev ices();
for (int j = 0; j < 1 /* gs.length */; j++) { //Only one display
DisplayMode dm = gs[j].getDisplayMode ();
int width = dm.getWidth();
int height = dm.getHeight();
int bitdepth = dm.getBitDepth( );
int refreshrate = dm.getRefreshRa te();
}

To implement (b) to (e), you need to write codes like:

//The following codes are used to get OS information
System.out.prin tln("Current OS Information");
System.out.prin tln("Name " + System.getPrope rty("os.name")) ;
System.out.prin tln("Version " + System.getPrope rty("os.version "));
System.out.prin tln("Architectu re " + System.getPrope rty("os.arch")) ;
//for others, you should check System.getPrope rty of JAVA.

To implement (f) and (g), you need to get information from two files (included in the assignment): \proc\cpuinfo and \proc\meminfo, and use StringTokenizer to retrieve required information from these two files.


It seems really simple but I feel I am just not knowledgeable enough to grasp it.
where exactly are you having problems?
Sep 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
16226
by: Phil Stanton | last post by:
When designing a new form or report, the Default ForeColor is often something like -2147483640 which is the colour of Windows text (possibly black) and the default backColor is -2147483643 (possibly white) Can anyone tell me how to convert these colours to either RGB colours or the Long number used by Access. Black is 0 and White is 16777215 ...
0
2477
by: Efi | last post by:
Hi, We have a simple 3 tier application which its core application is VC++ 6.0 ATL COM running as a server application in the COM+. An asp pipe is in charge of handling the requests and passes it to the COM for processing. We are now trying to migrate the asp pipe to Asp.Net. When running the above configuration with Asp.Net on IIS 5.0 (W2K) we have no problems but when trying the do it on IIS 6.0 (W2K3) we are getting the following...
0
1794
by: masago | last post by:
Hi....how are you ?? they can help me to solve this problem ?? Access to the path = "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET = Files\reports\06639073\bbab30a7" is denied.=20 Description: An unhandled exception occurred during the execution of the =
6
6269
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET app or so.... is it?), I tried measuring the bandwith consumed by the Access/MyODBC/MySQL link, which came out to be, er, quite high. I fancied it would be interesting to look at the queries Access throws at MySQL through the ODBC link, so I...
5
5086
by: Max | last post by:
hi i have file browser control to select any file and a button to upload file on my web page now when i select any file. now on click of upload button i have check that file exist or no if system.IO.File.Exist(file path) then .... end if now when ever i choose file system.IO.File.Exist(file path) return
6
4033
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new types of objects (classes) can only be defined in Class modules.
5
3832
by: scheidel21 | last post by:
I am writting a DB front end in VB.NET 2003 I have a form that displays employee information it has a dataset loaded from the DB that also includes tables for lookup in some comboboxes that are bound to the employees table so I load the combo boxes and then set the selectedText propertyt to bind to the Employee table as only those listed are choosable, This works problem is now my app it throwing the exception above within the...
2
4503
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message boxes (please see associated source code below): 1) Win32 API with context ("btnWin32WithContext_Click") 2) .NET Framework with context ("btnFrameworkWithContext_Click") 3) Win32 API withOUT context ("btnWin32WithOUTContext_Click")
1
1175
by: jayo17 | last post by:
Hi i want to make a form that edits information on the table. the way i want it to be is on the first form have cascading combo boxes (which i have done already) and when the selection is made (which would be a person's employee number), i want to open another form with his/her information it derived from the table. then you could edit it and save the changes upoon review. i can figure out the combo boxes, like i said, to filter to a...
0
10571
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10326
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9143
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.