473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

system information with GUI boxes

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
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
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.getRefreshRate();
}

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

//The following codes are used to get OS information
System.out.println("Current OS Information");
System.out.println("Name " + System.getProperty("os.name"));
System.out.println("Version " + System.getProperty("os.version"));
System.out.println("Architecture " + System.getProperty("os.arch"));
//for others, you should check System.getProperty 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 4703
r035198x
13,262 8TB
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
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
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.getRefreshRate();
}

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

//The following codes are used to get OS information
System.out.println("Current OS Information");
System.out.println("Name " + System.getProperty("os.name"));
System.out.println("Version " + System.getProperty("os.version"));
System.out.println("Architecture " + System.getProperty("os.arch"));
//for others, you should check System.getProperty 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
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...
0
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...
0
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...
6
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...
5
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...
6
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...
5
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...
2
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...
1
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.