Search:

Type: Posts; User: hooshdar3

Page 1 of 3 1 2 3

Search: Search took 0.10 seconds.

  1. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    Java programming is a part of their undergraduate program, while we are graduate students.
  2. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    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
  3. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    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...
  4. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    My latest, shortened code is:


    import java.io.*;
    import java.util.*;
    import java.util.concurrent.TimeUnit;
    import com.sun.management.OperatingSystemMXBean;
    import...
  5. Replies
    37
    Views
    3,616

    Re: Empty dialog

    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...
  6. Replies
    28
    Views
    3,033

    Re: How to set a button event trigger?

    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...
  7. Replies
    37
    Views
    3,616

    Re: Empty dialog

    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...
  8. Replies
    37
    Views
    3,616

    Re: Empty dialog

    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.*;
  9. Replies
    37
    Views
    3,616

    JCheckBox

    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...
  10. Replies
    37
    Views
    3,616

    Re: Empty dialog

    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...
  11. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    I am still without solution
  12. Replies
    37
    Views
    3,616

    Re: Empty dialog

    Nothing.I have pasted all the code
  13. Replies
    37
    Views
    3,616

    Empty dialog

    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{
  14. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    No, not yet.
    Don't know how to upgrade to see if the problem resolves
  15. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    ok



    import java.io.*;
    import java.util.*;
    import java.util.concurrent.TimeUnit;
    import com.sun.management.OperatingSystemMXBean;
    import java.lang.management.ManagementFactory;
    import...
  16. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    Yes, that is how I declared it.

    The for-loop has in its body:


    OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)
    ManagementFactory.getOperatingSystemMXBean();
    ...
  17. Replies
    37
    Views
    3,616

    Re: cannot find symbol:getSystemCpuLoad()

    osBean is defined as:


    OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean)
    ManagementFactory.getOperatingSystemMXBean();

    and the error text reads:
    ...
  18. Replies
    37
    Views
    3,616

    cannot find symbol:getSystemCpuLoad()

    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...
  19. Replies
    5
    Views
    810

    [SOLVED] Re: cannoot find symbol

    Eh...I haven't defined it?Look inside for-loop...I have. haven't I? I have.....seemingly, unless it goes out of scope
  20. Replies
    5
    Views
    810

    [SOLVED] cannoot find symbol

    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;
  21. Replies
    7
    Views
    1,210

    [SOLVED] Re: Unexpected type

    sysinfoHooshi.java:72: unexpected type
    required: variable
    found : value
    { e.getStateChange()==1 ? nameChecked=true :nameChecked = false;}...
  22. Replies
    7
    Views
    1,210

    [SOLVED] Re: Unexpected type

    Hey, those "if"'s are commented out
  23. Replies
    7
    Views
    1,210

    [SOLVED] Re: Unexpected type

    I have told you:lines with getStateChange() == 1.
    Unfortunately I cannot name number.This forum doesn't show line numbers.
  24. Replies
    7
    Views
    1,210

    [SOLVED] Unexpected type

    Hi.
    This is a snapshot of my code:

    public class sysinfoHooshi implements ActionListener{
    class Info{
    public String name;
    public String version;
    public String arch;...
  25. Replies
    6
    Views
    906

    Re: limiting string length

    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...
Results 1 to 25 of 70
Page 1 of 3 1 2 3