Why there is error in my java program although i copied it directly from Deitel book.10 points if yo

2006-07-28 20:08:51, Category: Programming & Design
import java.awt.BorderLayout; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JTabbedPane; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.SwingConstants; public class AnimalCategory extends JFrame { // set up GUI public AnimalCategory() super(" AnimalClass "); // create JTabbedPane JTabbedPane tabbedPane = new JTabbedPane(); // set up panel and add it to JTabbedPane JLabel label1 = new JLabel("Tigers", SwingConstants.CENTER); JPanel panel1 = new JPanel(); // create first panel panel1.setBackground(Color.Blue); //set background to blue panel1.add( label1 ); // add label to panel tabbedPane.addTab("Tab One", null, panel1, "First Panel"); JLabel label2 = new JLabel("Elephant", SwingConstants.CENTER); // create second panel JPanel panel2 = new JPanel(); panel2.setBackground(Color.Yellow); //set background to yellow // add label to panel panel2.add(label2); */ continue tabbedPane.addTab("Tab Two", null, panel2, "Second Panel"); JLabel label3 = new JLabel("Elephant", SwingConstants.CENTER); // create third panel JPanel panel3 = new JPanel(); panel3.setBackground(Color.Green); //set background to green // add label to panel panel3.add(label3); tabbedPane.addTab("Tab three", panel3, "Third Panel"); add( tabbedPane ); } }

Why do "good" web designers continue to rely on client-side scripting when it is a security vulnerab

2006-07-29 11:25:59, Category: Programming & Design
And why do "good" designers continue to use absolute font sizing, prevening users from resizing the font in their browsers? I disable javascript in my browser and override sites' stylesheets and it's amazing how much "good" design goes to pot in that environment. Are people just too lazy to learn server-side scripting and relative font sizing? SirStupid, trouble is, even though you don't want a lowly end user like me (who exactly was the web created for anyway?) to "screw" with your font size, I merely want to be able to read the content. Many designers are more concerned with form than function, never mind "accessibility" (a topic covered in web design 101). I'm more concerned with how easily, quickly and safely I can use a given site than with some self-centered designer's precious aesthetics.

How to disable the minimize, maximize and close buttons of a java applet ? Can we customize them?

2006-07-29 12:07:29, Category: Programming & Design
I want to disable the buttons of the applet itself, not of any frame of that applet.

how do i get a java servlet signed?

2006-07-29 13:43:04, Category: Programming & Design
I am making a servelt that writes html files and saves them to the server, but when i run it i get java.security.AccessControlException: access denied (java.io.FilePermission write)

WHAT IS AJAX ? where can i find resources to learn it ?

2006-07-29 21:10:30, Category: Programming & Design
i want to learn AJAX. But have no idea about this..I just know than AJAX is abveration for asynchronous javascript and xml.

javascript is not working in my JSP apps?

2006-07-30 00:20:14, Category: Programming & Design
when i define some function between the tags inside a JSP app, and when i call these functions from anywhere inside the JSP, i get no interaction, no response, no anything ... NOTE: i'm about to use the AJAX technology, so javascript is too important ... Please reply ASAP, thank you ...

Help with JavaScript?

2006-07-30 00:31:38, Category: Programming & Design
Hello everyone, I am stuck in one of the javascripts, well actually AJAX bit i guess. In PHP i have a textarea, I am saving that into the MySQL database as it is using AJAX. When I am reading it back, I am converting the carriage returns into
to make sure that the enter keys pressed should be displayed as it is, the following is the code: $change = array("\r\n" => "
"); $string_message = strtr($row['document_text'], $change); echo $string_message; This code works fine if I am not using AJAX. What actually is happening, once the data passes through AJAX and reaches to the php script on the server, all \r\n are converted to null. See the example below. The text is: line1 line2 line3 once saved in DB, even using the above replace code, the string looks like this: line1line2line3 but before saving, i view the string using alert() function in javascript, it shows the string like this: line1 line2 line3, but again after reading from DB line1line2line3

java linux problem, plz answer!?

2006-07-30 18:08:50, Category: Programming & Design
i am instaling java, im as superuser, on the java directory in the terminal, i put in "chmod a+x jre-1_5_0_06-linux-i586-rpm.bin" to change the permision for instaling the java and it said there is no such file or directory, help? oh i am in the java directory, and i downloaded the java linux rpm(self extracting file). plz help, and hey, if it wprks, ull get 10points, plz help! cmon ppl, answer me! i have 2! use it, i have a chat room, i used 2 go on with lot of friends and a high lvl runescape account! answer and help me plz! im never gunna give up!

Future of PHP/Mysql?

2006-07-30 22:49:33, Category: Programming & Design
Iam a php/mysql developer. I wanna know whether staying in php and mysql forever would affect my future. Most s/w people are in either java or dotnet. Iam novice in both of them. I love php and i dont wanna shift from it. Please tell me whether staying as a php developer is good enough to have a settled future in spftware industry. Pro's and Con's respected.

Java Doubt?

2006-07-31 01:10:43, Category: Programming & Design
I am learning java application...In JDBC ...i want to connect with MS Access the syntax for getting connection is Connection con = DriverManager.getConnection(url, "myLogin", "myPassword"); what is my doubt is this url? CAn anybody write me , what i have to give as url when i use MS Access and for examble StuDb is my database and StuTab as my table? I am beginner just started to learn java application