35,618 Topics
![]() | |
Hi all, I have a task in which I have data of different classes.And I have to perform K-means clustering on each class to reach the right combination of clusters. Can somebody give any link of code or help for this. Thanks Gaurav | |
hi everybody.... i need to make an application to display images in j2me form. i can display those images but the problem is i have to display it in a row... from right to left until all the images has displayed.. and if the screen is'nt enough it will display … | |
Hey, I really need you guys help as I had been searching info on displaying blob images from database for weeks:( I tried to add in the code that i think would display however it only display the path instead if the image. [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ … | |
Please help me in setting apache-tomcat-6.0.20 on linux. When I use the code [QUOTE]sh startup.sh[/QUOTE] I see this. [QUOTE] Using CATALINA_BASE: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_HOME: /home/apinder/apache-tomcat-6.0.20-src Using CATALINA_TMPDIR: /home/apinder/apache-tomcat-6.0.20-src/temp Using JRE_HOME: /usr/java/jdk1.6.0_14/[/QUOTE] No error message is shown here, but if I open [url]http://localhost:8080/[/url] tomcat default page doesn't open. I haven't changed … | |
i want to create a moving graph whose y value progresses with the slider value.i am confused whether to implement it using JFreechart.Is there a simpler method? How should i go about doing this? | |
hi.. this is my new program .. i want a fix or constant answer like, when the answer in: Student Name: Monica Clare then it proceed to another question.. but when.. Student Name: blah blah then. it shown error_message that it is invalid answer,, .. please help me debugging this … | |
I already have 3 Javascripts working that I trigger within my <td>'s like this: [code]<td onMouseOver="mover(this)" onMouseOut="mout(this)" onClick="mclick('test.html')">Test Button</td>[/code] I have now coded up 1 Javascript function to handle all 3 events (using if statements). But how do I trigger the calling of that function inside my <td>'s? I was … | |
I saw a similar problem to this, but couldn't understand the solution the guy used. I have to sort this tunes program in order by title. It seems like there is a problem with my sort algorithm, but I cannot figure it out. Here are the classes. [code] public class … | |
Hello Sir /Mam, Im starting learner in java.I used db queries like insert ,delete,update only.I want to learn how to use store procedure ,triggers,function with java.can u give some guidence refer some good website to learn db with java and books,tutorials. Plz help me to learn those things.Hopefully i expect … | |
I have a small question. I am using a JFileChooser in one of my projects and I want to make it so that I cannot edit the file name. Is there any way to do this? | |
plz tell me something abt industrial pro developments in C++/ JAVA i m a diploma student | |
Hello, I have a Tree that consists of TreeNodes, where TreeNode is public class TreeNode { private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; } I also have a HashMap <String, TreeNode> that keeps the label of … | |
Hi, i want to know how to extract values from drop down box for processing in next field. In my file first drop down has list of countries taken from a database. I want to show location of that particular country in the other dropdown. The list of all locations … | |
What is the difference between MVC1 and MVC2? | |
Want to create a small project for online exam using jsp. As of now I am unable to find, how can I > Get random questions from mysql database > Put the timer, so that the exam result is shown automatically after the specified time for exam is over More … | |
i am not getting the desired output(the contents in a text file which i have saved in the jdk bin here is my code i got. Also what is return in the try catch block i wanna know. it says file not found [code] import java.io.*; class FileDemo { public … | |
I want to create a forum for the college. Could anyone tell me the [U]suitable platform or software[/U] that supports forum creation. | |
I have installed on Linux Tomcat 5.5. I have no problem accessing jsp pages. However, I have problem accessing a test hellow world servlet. I tried the following url on my local tomcat on win xp and it worked. [url]http://localhost:8080/hw[/url] Attached is a copy of my web.xml file I used … | |
i cant compile and run my program. . tell me what to do! T_T | |
Please help me with the code snippet to this java application | |
I was trying to read a file and print it to the JTextArea in other class. My program complies but its not printing the file content in JTextArea. Here is my MouselIstener Code [CODE]class MySaveMouseListener extends MouseAdapter { MyClass1 myobj = new MyClass1(); public javax.swing.JTextField myjtext = myobj.getTextField(); public String … | |
my code : ********uploadImage.jsp************* [code=JSP]<form action="UploadImage" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br> <table width="400px" align="center" border=0 style="background-color:ffeeff;"> <tr> <td align="center" colspan=2 style="font-weight:bold;font-size:20pt;"> Image Details</td>[/code] ******UploadImage.java****** [code=Java]import java.io.*; import java.sql.*; import java.util.*; import java.util.regex.*; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.*; import javax.servlet.*; import javax.servlet.http.*; public class UploadImage extends HttpServlet { @Override public void … | |
Hi all , I have a servlet program, this program will get a user name and password from a web page. I need to check the user name and passsword entered by user with a data file has all user names and passwords. the thing is I know how to … | |
Hi, I like to add textbox based on the user selection in drop down box,I have used an function to do that but its not workin,also i like to append the selected value(from drop down) to the input from the text box. Cheers! lpk | |
I want to create a tabbed menu using jsp. Any example would be helpful so that i can start working on it. | |
[code] package awt; import java.awt.*; public class GraphicPanel extends Panel { GraphicPanel() { setBackground(Color.black); } public void paint(Graphics g) { g.setColor(new Color(0,255,0)); g.setFont(new Font("Helvetical", Font.PLAIN,14)); g.drawString("Pusyy Cat Program!", 300, 100); g.drawOval(150,200,50,50); g.drawOval(200,200,30,30); g.setColor(new Color(1.0f,0,0)); g.fillRect(30,100,150,10); } public static void main(String[] args) { Frame f = new Frame("Pussy Cat Window"); GraphicPanel … | |
I'm retrieving a list of names from MySql database in Java using JDBC with the help of CachedRowSet. After retrieving the list I'm appending a counter value to every name. Finally I'm updating the modified names in the database. I'm using: MySql: 5.1 Connector/J 5.1.7 JRE 1.6 Win Xp SP3 … | |
Hi!!! am a cse student How to create packages in java? i used da "package" keyword and created a class in dat file . It gets compiled , but while execution i get dis error: "Exception in thread "main" java.lang.NoClassDefFoundError:" if i try to execute it by givin "java packagename.classname" … | |
can you pl help me out on this problem ..i have spent a lot of time on this question but iam unable to find the answer What if i want to write a class in such a way that only one instance of it can be created , and anyone … | |
Here there is a requirement in my project, like sending a automatic mail to a particular person,at particular time. for examples: If there is an expiry date for a customer's account, a week before the expiry date a mail should be send to the customer as a remainder. But, at … |
The End.