35,618 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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" }; // … | |
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 … | |
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}, … | |
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 … | |
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 … | |
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, … | |
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); } … | |
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 | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] | |
:-/ 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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
[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 … |
The End.