35,618 Topics

Member Avatar for
Member Avatar for mani.mani

Hi all, I have two strings containing dates.. I converted them into Date objects. now I want to compare them. I know that there is a very small difference between the two.. difference of a few seconds..... which i want to disregard. if i use the equals method, my program …

Member Avatar for JamesCherrill
0
83
Member Avatar for Barefootsanders

Hey everyone, I'm attempting to write a directory monitor in java but I'm stuck. I'm trying to find something in Java that is like FileSystemWatcher in .NET but I don't think java does. From what I read is that you have to continually poll the directory for changes. What I …

Member Avatar for bobby_newmark
0
119
Member Avatar for sreenivas.m41

hi, i have an applet and it will send the request to action class there i wrote the data base connections and retrieval operations......its working fine but first 8 requests only i am getting the response..after that nothing response from action class ..and if i refresh the url applet is …

0
22
Member Avatar for samarudge

Hey guys, I'm a bit of a Java noob but could someone please explain digital signatures to me. I have an application and I build it using the command [CODE=shell]javac -classpath %CP% TunerApplet.java jar cvf TunerApplet.jar *.class jarsigner -keystore Tuner -storepass authentic -keypass authentic TunerApplet.jar Tuner[/CODE] As a guess it …

Member Avatar for jwenting
0
116
Member Avatar for ceyesuma

I am having trouble understanding how an interface could improve my app. I have a DAO class for each profile that logs into the app.this DAO class will know how to insert,delete,update,remove,etc concerning that profile and the database and populating components with database data . I introduced an Interface for …

Member Avatar for ceyesuma
0
114
Member Avatar for ekseks

So I have an assignment that involves the need of a vector in it can someone help me to code it i need to get the "text" in a "textbox", you know just passing it... btw, I'm using Netbeans and I need to code it on JSP...

Member Avatar for jwenting
-1
91
Member Avatar for Lass

Hello everybody, I'm working in a java interface and I'm trying to use an image as a background but nothing from the result I found in the internet seems to work well with me :/ my code is: [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.awt.Color; public class …

Member Avatar for Lass
0
91
Member Avatar for idlackage

I've got a NullPointerException at line 50 (and the init on line 12). Can't figure out why. [CODE]private String gradientText[] = { "Gradient State", "Gradient Cols" }; private String lineText[] = { "Line Width", "Dash State", "Dash Length" }; private String shapeText[] = { "Shape Type", "Fill State" }; // …

Member Avatar for idlackage
0
112
Member Avatar for johndoe444

I installed J2EE SDK in windows 7 machine. But I can't seem to find the location of quite a things. In the J2EE tutorial, they mention there is something called J2EE_HOME. I don't seem to find it. There was a previous installation of J2SE sdk in program files. That is …

Member Avatar for johndoe444
0
84
Member Avatar for kesh1000

hi guys can somebody tell me a short method of initialing some thing like this. [CODE] public static final int[][] CITYARRAY = new int[][] { {0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7},{0, 8}, {0, 9}, {0, 10}, {0, 11}, {0, 12}, …

Member Avatar for adrianniebla
0
161
Member Avatar for itz.aayushi

I have an application written in JSP running in Apache Tomcat Server and back end is MySQL and m having problem in my code tried many things like creating a .bat file but dint got a code to run .bat file from jsp page. Also the following code i tried …

Member Avatar for itz.aayushi
0
932
Member Avatar for adrianniebla

I have three classes one which is class User contains information about users name, last area code etc.... and it must implement Comparable but receiving generic parameters. Another one is a custom doubleLinkedList which basically has a link to the right and one to the left and contains a generic …

Member Avatar for JamesCherrill
0
209
Member Avatar for sfrider0

I finally figured out that my applet needs to be signed for it to work. So I've spent the last few hours figuring out how to do that. I used the keytool to create my .crt file, then created the .jar file using jarsigner. After I did all of that, …

Member Avatar for bigdognec
0
105
Member Avatar for sivaprakashm

i can't able to display series2 dataset value in chart Any one explain me how to solve this problem Need Help Thanks in advance[code]dataset.addValue(plan, series1, category); dataset.addValue(actual, series2, category); CategoryItemRenderer renderer = plot.getRenderer(); renderer.setItemLabelPaint(Color.white.brighter()); for(int i =0;i<var.length;i++) { renderer.setLabelGenerator(new LabelGenerator(var[i])); renderer.setItemLabelFont(new Font("Serif", Font.PLAIN, 20)); renderer.setItemLabelsVisible(null); renderer.setSeriesItemLabelsVisible(0, false); renderer.setSeriesItemLabelsVisible(1, true); } …

0
54
Member Avatar for ceyesuma

Hello Is there a recommended way to drag a table from netbeans pallet and use ResultSetMetaData or any class to have the table change automatically for any table being displayed? thanks

0
48
Member Avatar for socal

This is my class [CODE]import java.io.*; public class bankAccount { //instance variables public String name; public int number; public double balance; public double deposit; //constructor public bankAccount(String name, int number, double balance, double deposit) { this.name = "John Smith"; this.number = 123456; this.balance = 0.0; } public double getBalance() { …

Member Avatar for idlackage
0
100
Member Avatar for bonethirst

Hi guys, I might be new to jsp.. but i was trying to read an xml file through jsp and it doesn't show anything when i open it..can someone help me figure out whats wrong with it?? or is there anything that i missed? Thanks in advance. here's a bit …

Member Avatar for peter_budo
0
152
Member Avatar for sfrider0

I've been working on an applet that gets all the links from a webpage. So far, I have it getting the source. I have found some regular expressions that supposedly will parse out the source, but it doesn't make any change to the original source. I also found some example …

Member Avatar for sfrider0
0
96
Member Avatar for Dig

Hello everyone, I quite new at JAVA and one assignment is on my nose and I am going crazy.. My task is: "[I]Create a solution for the following scenario: A local community mobile college unit holds 2 different classes in literacy and numeracy for mature students. A student can join …

Member Avatar for Dig
0
143
Member Avatar for ceyesuma

I can not figure out how to get data from the model to the GUI in the view. If the user logs in successfully all the users personal data is stored into the bean including the userUid. of the user. also, if login is successful the app will build many …

Member Avatar for ceyesuma
0
82
Member Avatar for babbu

hie, i have a web project made in jsp in one of the jsp files there is this statement [code] parent.metric.location.replace() [/code] and some values inside the parentheses. please explain what this method does.[code][/code]

0
60
Member Avatar for !n@k!

:-/ Hello everyone!!! Could you help me by giving some examples?... I have to write a code which would apply an InterpolationSearch to an array of 1000 strings using a reccurtion... The problem is that I can't find any examples... [COLOR="Red"] HELP!!:?: [/COLOR]

Member Avatar for !n@k!
0
69
Member Avatar for hiks

code function javascript to swapimage(img1) var str1 = new String(img1); var text = document.getElementById('<%=TextBox1.ClientID %>'); var arr = new Array(); arr = str1.split('/'); document.getElementById(textvalue).src = str1; document.getElementById('<%=addProductImage.ClientID %>').src = "Images/ProductImages/thumb_" + arr[arr.length - 1]; document.getElementById('needToChange').href = str1; question is .. when page load appear problem which is say htmlfile: Invalid …

0
55
Member Avatar for ttboy04

Hello, the following code is not exactly working properly. Bascally when I enter + in the dialog box it escape but still increments in the calculation. So for instance if I first enter a word "hello" then I click OK button then I enter word "there" then I click OK …

Member Avatar for ttboy04
0
146
Member Avatar for demifuror

Hi guys, At the minute, I'm writing a simple Java application under Lucid Lynx, the latest and greatest Ubuntu release :) Can anyone tell me how to make the windows in my application, match the look and feel of the other windows in the system? I've tried setting the default …

Member Avatar for jwenting
0
248
Member Avatar for .11

I am working on an phone book class, and I have to have the Phone numbers, which have a name and address in an order list(linked). But I have to sort by phone nnumber, not by name...I have been trying to think of ways to sort the phone numbers. So …

Member Avatar for bigdognec
0
761
Member Avatar for socal

Okay I'm a beginner programmer and I just can't seem to get the most basic class and constructor to work. Heres what I have [CODE]import java.io.*; public class bankAccount { //instance variables String name; int number; double balance; } public bankAccount(String name, int number, double balance) { name = "John …

Member Avatar for masijade
0
69
Member Avatar for ChPravin

Hello All, I am getting the following error message when I try to execute my program as an executable jar on a remote system.The same program works perfectly fine on my local system: Exception in thread "main" java.sql.SQLException: Operation not allowed after ResultSet closed at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) …

Member Avatar for masijade
0
943
Member Avatar for harsh6886

Hi All, I have jsp page where in the only code I have is a [code]<% response.sendRedirect("/cz_CZ/songs/angelique_song.zip"); %>[/code]. Now this starts the browser download window and asks the user to download the zip file. Now, what i want is once the user completes the download I want to display thank …

0
65
Member Avatar for white feather

[CODE] public void setTableModel(List<Users> users) { eraseTableRows(); for (int i = 0; i < users.size(); i++) { Users u = users.get(i); tm.insertRow(i, new Object[] { stuff }); } } private void eraseTableRows() { for (int i = 0; i > tm.getRowCount(); i++) { tm.removeRow(i); } [/CODE] i've tried this and …

Member Avatar for white feather
0
145

The End.