Java programming is a part of their undergraduate program, while we are graduate students.
Type: Posts; User: hooshdar3
Java programming is a part of their undergraduate program, while we are graduate students.
Grid computing has nothing to do with OOP.Its a form of distributed computing.
--- Update ---
There is just one actionPerformed() method, so the problem is fairly pin-pointed
Why should I use one class per Dialog?
What would be System.out.println() good for? I am seeing that the first button works when clicked, while the second doesn't (they should both close the...
My latest, shortened code is:
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import com.sun.management.OperatingSystemMXBean;
import...
The check boxes will read "OS version", "CPU architecture", etc , according to which some boolean variables are set, which help to decide which fields of a stored object in a queue will be...
But what if I have more buttons?
I have 1 HButton, named 'button' on a 'JDialog' named 'dialog', and anotther JButton named 'queryButton' on a 'JDialog' named 'queryDialog'.
I changed the...
I have studied some examples, but believe me or not, I have no teacher. Never had any teacher.
--- Update ---
Multiple threads merged.
They each work , but the problem is that I have...
What's the use of reading oracle tutorials when I must use openjdk?
I will post my original code, OK.
--- Update ---
My original code
import java.io.*;
import java.util.*;
Hello.
Why is it that ticking JCheckBox objects make seamingly no effect in:
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import...
I changed it to FlowLayout()
I am new to Java. I wastesting to discover the problem. I changed the pane type from Container to JFrame
It is just that My professor wanted me to write a java...
I am still without solution
Nothing.I have pasted all the code
Hi.
What is it that an empty dialog appears as the result of my code?
my code:
import java.lang.System;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class t{
No, not yet.
Don't know how to upgrade to see if the problem resolves
ok
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import com.sun.management.OperatingSystemMXBean;
import java.lang.management.ManagementFactory;
import...
Yes, that is how I declared it.
The for-loop has in its body:
OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)
ManagementFactory.getOperatingSystemMXBean();
...
osBean is defined as:
OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)
ManagementFactory.getOperatingSystemMXBean();
and the error text reads:
...
Hi.
What's the problem with my errorring line?
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
import com.sun.management.OperatingSystemMXBean;
import...
Eh...I haven't defined it?Look inside for-loop...I have. haven't I? I have.....seemingly, unless it goes out of scope
Hi.
What's wrong with:
public void showResults(Info[] queue,int k)
{
String results = "";
for(int i =0;i<queue.length;++i)
if(nameChecked)
results += queue[i].name;
sysinfoHooshi.java:72: unexpected type
required: variable
found : value
{ e.getStateChange()==1 ? nameChecked=true :nameChecked = false;}...
Hey, those "if"'s are commented out
I have told you:lines with getStateChange() == 1.
Unfortunately I cannot name number.This forum doesn't show line numbers.
Hi.
This is a snapshot of my code:
public class sysinfoHooshi implements ActionListener{
class Info{
public String name;
public String version;
public String arch;...
But the result is that I cannot create a queue of 1000 elements of objects of the class I created, be they optimized or not.
I am not gonna become a java programmer, not now, but I now have to...