Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.

Dave Kairys

Ranch Hand
+ Follow
since Sep 09, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dave Kairys

And there isn't a .NET IDE that can compete with the refactoring capabilities of IDEA or Eclipse, as far as I know.



There are refracting tools for .NET(2003 and 2005). Go to Refracting Tools

In terms of creating GUI's with .NET, it is much simpler than with Swing, at least what I have done so far. I can create a very complex GUI in .NET in about 10 minutes, where the same GUI in Java would take several hundred lines of code to do. You can also change the layout of the GUI in the Windows Designer Code, if you know what you are doing. GUI design is much simpler in .NET than in Java.
12 years ago
A book that I have found quite helpful is "The Complete Reference: Java, J2SE 5th Edition". I doesn't go into alot of detail on any particular topic, but it does cover a very broad range.
12 years ago
Java Swing isn't as easy to figure out as compared to .NET, due to the far superior IDE in .NET than is currently available for Java. I have used Eclipse and IntelliJ Idea, but they don't compare. Jesper said that Java is platform independent, which is true. However, an app written for the Windows platform will far outweigh the 'general' app, and the same goes for any other platform. In other words, a platform specific language will always surpass a 'general' language. I have coded in both Java and .NET and .NET is much easier to learn. It also can do some pretty powerful stuff, where Java just can't compete with. .NET development is much faster, probably because of a specific IDE that comes bundled with the software. The MSDN forum really sucks, as compared to this forum. So it boils down to what you like and are comfortable with.
12 years ago
I totally agree with Jeff. A quick search for "Algorithm" on Google returned alot of results, with Wikipedia at the top. Another site to try would be www.whatis.com. Good luck!
12 years ago
Tony,
What did you mean by

It's not quite true.


I am new to Java and I was referencing the Head First Java text when I provided some insight into the proposed question. Please elaborate on your comment.

Thanks!
12 years ago
This has to do with polymorphism. All abstract methods must be implemented(or overridden). In order to override a method, you would need to have code in another method that would do this.
12 years ago
I am using a TextArea array to store various values. The program is basically booking a room. When one room is booked, the background color changes and some text appears. It then needs to move to the next room. I can get the color and the text to appear, but I can't get it to move to the next room. I have an array for the 'next room' that is set to true(from false) when the color and text appear for the booking of the first room. I am also using JRadioButtons. Here is some code:

if (rweak.isSelected()) {
for (int b = 1; b < 4; b++){
LowGravity[b].setBackground(lightRed);
LowGravity[b].setText(LowGravity[b].getText() + " " + maltedbeverage.getSelectedItem() + "\nkegs of " + lengthTF.getText());
brewed[b] = true;//garden is occupied
if (brewed[b] = true) {
LowGravity[b].setBackground(lightRed);
}//closes inner if
break;
}//closes for loop
}//closes if
Any suggestions?
Thanks!
I do realize that this is a SWING topic. I also posted it there as well.
12 years ago
I am using a TextArea array to store various values. The program is basically booking a room. When one room is booked, the background color changes and some text appears. It then needs to move to the next room. I can get the color and the text to appear, but I can't get it to move to the next room. I have an array for the 'next room' that is set to true(from false) when the color and text appear for the booking of the first room. I am also using JRadioButtons. Here is some code:

if (rweak.isSelected()){
for (int b = 1; b < 4; b++){
LowGravity[b].setBackground(lightRed);
LowGravity[b].setText(LowGravity[b].getText() + " " + maltedbeverage.getSelectedItem() + "\nkegs of " + lengthTF.getText());
brewed[b] = true;//garden is occupied
if (brewed[b] = true){
LowGravity[b].setBackground(lightRed);
}//closes inner if
break;
}//closes for loop
}//closes if
Any suggestions?
Thanks!
12 years ago
When declaring a TextArea, what does the information in the parens mean?
Specifically, the null, 3,5,3? The b comes from a for loop.
TextArea[b] = new TextArea(null, 3,5,3);

Thanks!
12 years ago
C++ is similar to Java, seeing as that is where the foundation of Java came from. However, as far as my knowledge, there is really no good IDE(integrated development environment) for Java(if someone knows of one, please let me know). That really makes programming quite a bit easier. Java isn't that hard to learn. For my course, we are using 'Head First Java'. That text isn't that bad, but they really don't give alot of code examples. For that, I purchased 'The Complete Reference: Java J2SE 5 Edition'. That text gives alot of code examples, but may be a bit too much for someone that hasn't had any programming experience at all.
Good Luck!
12 years ago
I don't even get any error messages. That is what is strange about it. I can comment the above block of code out and the program will execute no problem(the GUI still shows up). However, when that block is removed from commenting, the GUI doesn't show up at all. I haven't encountered anything like that ever.
12 years ago
I read in the text that we could find 'suggested' solutions at www.wickedlysmart.com.
12 years ago
I want to use some of the features of 1.5. For instance, in 1.4 (appropriate declarations made)
for (int x = 1; x < 9; x++){
if (x < 6){//places text 'Garden # + Low' in textarea
TextArea[x].setText("Garden " + x + "Low");
}//closes if
else{//places text 'Garden # + High' in textarea
TextArea[x].setText("Garden " + x + "High");
TextArea[x].setBackground(lightGreen);//sets color
TextArea[x].setEditable(false);//disallows any editing
pane.add(TextArea[x]);//adds to control
}//closes else
}//closes for loop
will populate a textarea array no problem. However, in 1.5, the program will not even run.
12 years ago
I have a program written in 1.4 in Eclipse. Is there an easy way, without recoding, to convert it to 1.5?

Thanks!
12 years ago
That is what I am doing. That seems like more coding than necessary to achieve the desired outcome. I am more familiar with VB.NET and with that, all you have to do is code nameofcontrol.enabled(boolean).
12 years ago