nanosani 20 Technize.net addict Team Colleague

// GUI Buttons
JButton ifButton , ifElseButton , switchButton , whileButton , doWhileButton , forButton, clearArea;
JTextArea output;
JLabel statusBar

ifButton.setForegroundColor(Color.red);
ifButton.setBackgroundColor(Color.black);
ifButton.setFont("Verdana");

Other buttons are likewise. If you have problems now ... post again.

nanosani 20 Technize.net addict Team Colleague

do anything like

nanosani 20 Technize.net addict Team Colleague

Linus Torvalds grating Bill Gates' head with a cheese grater -->Waiting at the gates to pay my bills.

nanosani 20 Technize.net addict Team Colleague

study java 2d APIs ... it'll help you draw different shapes like line, rectangles, polygons, ovals , spheres etc.

nanosani 20 Technize.net addict Team Colleague

Anonymous proxy surfing --> dumb head computers

nanosani 20 Technize.net addict Team Colleague

he looked angrily

nanosani 20 Technize.net addict Team Colleague

enable the content advisor n then see if it works.

nanosani 20 Technize.net addict Team Colleague

check your explorer guys ... is your explorer running ?? Is your content advisor enabled ?? disable it and then try again.

nanosani 20 Technize.net addict Team Colleague

And I know when you say restless work ... you mean that cuz I can see the site becoming popular day by day ... and it was not the look of daniweb but the hard work done by the creator ... thats you ... Thank you very much for giving the web this site.

nanosani 20 Technize.net addict Team Colleague

Welcome !
Hey Eric do post in "tell us about yourself" thread ... we'll be more informed about you then.

nanosani 20 Technize.net addict Team Colleague

so we should be celebrating whole of the month of June for our daniweb's birthday :o :eek: LOL :mrgreen:

nanosani 20 Technize.net addict Team Colleague

I think he installed some softwares which needed rebooting ... and he didnt reboot intalling some more softwares alike .... I just formatted the c drive and installed windows again ... LOL.

nanosani 20 Technize.net addict Team Colleague

I think you should use the string tokenizer for the following expression .. it'll be much easier for you to code.

nanosani 20 Technize.net addict Team Colleague

For changing the color ... button.setForegroundColor(Color.red);
For changing the font ... button.setFont("Verdana");

nanosani 20 Technize.net addict Team Colleague

File inputFile = new File("C:/Haha.txt");
FileWriter fw;
BufferedWriter bw;

Declare these outside the functions and then initialize them in your functions where you want to use them ... and make sure you have a try catch block where you put the file writer or file reader catching IOException for writer and FileNotFoundException for reader.

nanosani 20 Technize.net addict Team Colleague

What is the birthdate of daniweb ? Is it 9th Feb 2002 ... or what ?

nanosani 20 Technize.net addict Team Colleague

I define a language as a set of symbols with a set of gramatical rules ... c++ is also a language like english or french or german .... but its a language that a computer understands ... and ofcourse a programmer. Its not as easy as calculus ... but its not as hard too ... you take the first step and then you'll go along easily. But pay more attention to your first step.

nanosani 20 Technize.net addict Team Colleague

One of friends use windows xp ... and the problem is that when he starts his pc ... no application can start ... saying windows workstation is shutting down . couldnot initialize application. what is the problem ?

nanosani 20 Technize.net addict Team Colleague

them's fighting words --> Associative association

nanosani 20 Technize.net addict Team Colleague
public void move() {  //this is part of another program
timing u = new timing();

for (int k = 0; k < f; k++) {
  for (int i = 0; i < f - 1 - k; i++) {
    d.clearRect(A[i], B[i], 30, 30);
    if (f > 1) {              
      if (F[i + 1] < C[i + 1]) {    
        C[0] = F[i + 1];            
        F[i + 1] = 0;               
        d.clearRect(D[i + 1], E[i + 1], 30, 30);
        Timer.pause(250);
        d.setColor(c.decide(C[0])); 
        d.fillRect(A[0], B[0], 30, 30);
        Timer.pause(u.stop(C[0])); // does not work here in this program 
      }

what is C[0],F[i+1] .... an integer or a long or something

try if you save C[0] in a long and then pass it as a parameter.

long d = C[0];
Timer.pause(u.stop(d));
nanosani 20 Technize.net addict Team Colleague

first save the text in the text area in the string ...
String s = textArea.getText();

then make a file object
File f = new File("c\ret");

then make a writer object
FileWriter fw = new FileWriter(f);

then write into the file
fw.write(s);

This is a raw concept of writing into the file... sequential writing. Post more for any problems in you code.

nanosani 20 Technize.net addict Team Colleague

[IMG]http://http://www.qsl.net/wd8das/brain.jpg[/IMG]

Next : watching watch.

nanosani 20 Technize.net addict Team Colleague

Ku Klux Klan --> Full Fledge Fight

nanosani 20 Technize.net addict Team Colleague

a little awkward

nanosani 20 Technize.net addict Team Colleague

him in that

nanosani 20 Technize.net addict Team Colleague

PanelDemo.java [71:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
^

use the try catch blocks ....

try{
     UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch(ClassNotFoundExecption e){
System.out.println("class not found");
}

Let me know if it works.

nanosani 20 Technize.net addict Team Colleague
public class timing{ //this is the timing class
  public long stop(int a){
    if(a==1){ 
      return 150;
    }
    if(a==2){ 
      return 250;
    }
    if(a==3){ 
      return 350;
    }
    if(a==4){
      return 450;
    }
    if(a==5){
      return 550;
    }
    return 0;
  }//end function
}//end class

I had to do a lot of reading over it ... I think it'll run fine now ... test it n tell me does it work now ?

nanosani 20 Technize.net addict Team Colleague

Thanks cosi.

nanosani 20 Technize.net addict Team Colleague

try using ... button.setForegroundColor(Color.blue);

nanosani 20 Technize.net addict Team Colleague

How can I load a class dynamically ?? I need some code help to get started.

nanosani 20 Technize.net addict Team Colleague

cigarette --> nicotene

nanosani 20 Technize.net addict Team Colleague

The hardest program I wrote was a compiler of C language ( not a full one, but it did have many features) ... and the only reason I did code that was that it was a compiler construction lab assignment ... LOL ...

nanosani 20 Technize.net addict Team Colleague

I think you can use getSelectedText and setSelectedText methods of text area. I dont know about the awt components but I use them in swing.

nanosani 20 Technize.net addict Team Colleague

Thank you very much for so long a reply. You have forced me into learning atleast the basics of c#. I'll be starting soon. Cheers. :)

nanosani 20 Technize.net addict Team Colleague

Any Orkut members please INVITE me :cry: :cry: :sad: :sad: :sad: .

http://www.orkut.com :cheesy:

nanosani 20 Technize.net addict Team Colleague

If we dont study those bundle of subjects ... then what will be the difference between a computer mechanic and a computer engineer ... LOL :p :cheesy:

nanosani 20 Technize.net addict Team Colleague

snakes --> zig zag

nanosani 20 Technize.net addict Team Colleague

he jumped back

nanosani 20 Technize.net addict Team Colleague

hey i_me_roo ... sorry to say .... your code is not indented properly ... that makes it very difficult to read.

nanosani 20 Technize.net addict Team Colleague

just search google for free data undeleters...

nanosani 20 Technize.net addict Team Colleague

Mono, a three year effort, is an open source project that ports the underlying core .NET technology to Linux. The c #programming language pre written code libraries and Microsoft's common language runtime are being written into the project.
Mono, which is not a development tool like visual studio .NET, will make it easier for windows programmers to write applications for linux. Mono also supports Mac OS.
More information about the project can be had from :Mono Project

nanosani 20 Technize.net addict Team Colleague

I want to control the power of my room from my computer. I want to add the circuit to my serial or game port. Can I make the driver for it in java (I know I can) but is it easier than any other language like vc.

Any ideas?

nanosani 20 Technize.net addict Team Colleague

Yes Dani! you're doing a great work regarding this forum. And the new look n feel of the main page was also a good addition.

nanosani 20 Technize.net addict Team Colleague

Thanks Richard .. I assume that I should not learn c# by now ... I'll do my project in java.

nanosani 20 Technize.net addict Team Colleague

Is c # slower than c ++? Actually I am a little familiar with c and java ... now I am in a mood to learn c #. Is it better than c and java?

nanosani 20 Technize.net addict Team Colleague

Atlast I figured it out

"UIManager.getSystemLookAndFeelClassName()" will return the name of the default system look and feel... From there just do UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); and you're all set!

nanosani 20 Technize.net addict Team Colleague

suddenly he looked

nanosani 20 Technize.net addict Team Colleague

Are you planning to do your assignment as an applet or as an application?

nanosani 20 Technize.net addict Team Colleague

Back to the Future --> Online

nanosani 20 Technize.net addict Team Colleague

OOPs ! one of so many loops in my code was not terminating n it was consistantly writing into the memory :o . Thanks for the help fellas.