35,618 Topics
![]() | |
the exact diff between c++ and java technically........need to submit a assignment | |
I am getting the error in the title of this post when I try to run my ColorFactory class. Can someone tell me where Im going wrong? Heres my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class ColorFactory extends JFrame { //Fields of the class private JLabel messageLabel; … | |
Could any one you help me in resolving this issue. I want to write the content to a file line by line. I have done the following in my java class. I have to append the some content into an xml file. For this I am reading an xml file … | |
im having problem setting values into a String array.. it must be with a setter method (yes this is homework). i have created a Person class which u can set name, age, gender and then i created a Teacher class which extends person and further allows you to set ( … | |
Hi all, I'm doing the project, in which i'll get a string as response from the server. That string contains the xml content. I need to parse it and extract the required value of the xml tags... i have no idea about this, Kindly any one has a code to … | |
hello again everyone to pick up where i left off, i took the advice of a member and split my poker game up into different classes which i will post below 1)i need help with two errors in the poker class which i have commented out as compiler error messages … | |
hii.. I want to use a scriplet variable in javascript. i used <%! int i;> <% i=0; %> <input type="text" id="itemValue" onchange=changeValue('<%i%>')> it works fine if i give alert(i) in changeValue function. Otherwise it gives error i is undefined. Plz help me. I don't want to bother user by increasing … | |
Hi I am using jmf to build some music player and im want to add some equalizer that will "jump" up and down according to the music, how can I do it? | |
hello friends , i am searching job and put 5 projects and i am finding difficulty in explaning the current project so please can anybody tells me how to explain the project ,i mean how to start explaining and what should i explain .please its really urgent i am finding … | |
I am new to programming and have a question regarding a homework assignment. First off this is for an Inventory Program and it is part 2. The assignment is as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The … | |
I'm developing a Java application where I have to implement Shortest path algorithm (dijkstra's). I've stored the details of nodes in database. But my problem is that the number of nodes is very large (1000+) and taking all the nodes into consideration will increase the time and space consumption of … | |
Question 1) Define a class for Rectangle objects defined by two points, the top-left and bottom right corners of the rectangle. Include a constructor to copy a rectangle, a method to return a rectangle object that encloses the current object and the rectangle passed as an argument and the method … | |
I have a large file to read to get the data out of the columns. File size varies, but is usually around 1000 to 3000 lines. What I need to do is pull the data(numbers) from column 3 ONLY if the number in column 4 of that same line is … | |
Note, some of the code could be hard to understand as a bit is in Swedish. Hi! I am trying to learn some sql/java. I created some tables in an sql-database, and a java-program to access and modify the tables. I am not that experienced in programming so I might … | |
PLEASE PROVIDE ME A WAY TO PUT A JSP OUTPUT IN PDF FILE........ ACTUALLY WHAT I M DOING IS THAT......... There is a JSP page which displays charts (bar,pie) of students (name and marks ) from database ,,i want that this chart output also display in PDF file... pls help | |
SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.mail.pop3.POP3Message I am not getting why this exception has occurred.It throws the exception when i starts tomcat server. I have used recieve() method in LoginAction which is used to recieved mails using POP3 protocol. I am using JAVAMAIL 1.4 | |
Hello' I m using struts 2.0 . I want a comboBox(<s:select>) on Jsp. bean i want to populate in combobox is nested. I only know list property of <s:select> but my list is nested. How can i populate combobox with nested arraylist. | |
Hi there, Im creating a rating system in .jsp and im doing trial and error to figure out how to solve it. Here's the structure of the rating system. I have a jsp page call 'ListPhotos.jsp' of all the different images and directly below every image there is a hyperlink … | |
log.info("Able to establish mail session"); props.setProperty("resource.loader", "class"); props.setProperty("class.resource.loader.class", "org.apache." + [CODE]"velocity.runtime.resource.loader.ClasspathResourceLoader"); props.setProperty("file.resource.loader.path", "/"); Velocity.init(props); Template template = Velocity.getTemplate("MarketingAlert.html"); log.info("Able to find Template."); VelocityContext vContext = new VelocityContext(); vContext.put("url", url); vContext.put("userId", createdBy.toUpperCase()); vContext.put("appName", applicationName); vContext.put("custName", customerName); StringWriter writer = new StringWriter(); template.merge(vContext, writer);[/CODE] IM working on enhancement...im getting the below exception: … | |
Hi all, I am self submitting(reloading) the jsp page using javascript but after self submitting the value in <input type="file" name=" "> disappears . I tried to retain it using <input type="file" name="exe" value="<%=value[0][1]%>" > but it is not working. please suggest me how to retain this value. Thaks Ritesh | |
So, I have plans for a chat applet. I have only flowcharts and drawings of what I plan to do. Right now I'm creating my own HTTP server to deliver the applet, which is working nicely. Now I'm trying to find some stuff I want to add to the applet. … | |
Hi All! First thanks for viewing my thread. I have spent a half day and change trying to find a solution to this specific problem. Basically I am trying to figure out how to change the variable name while in a loop. The last loop is where my problem is … | |
i got problem to do video streaming code through website..can anyone help me.. | |
Hi to all there ! i am trying to to execute the query to insert values into database but all the time facing this exception my code for query is this [code]String query=("INSERT INTO imageinfo (imgId,imgName,imgEntryDate,userName,imagePath) VALUES ( '"+ 0 +" ',' " + imgNam +"',' "+ date +"',' "+ … | |
Hi everybody, while i build my ant scripts in eclipse, and at the stage of [INDENT][/INDENT][B][exec] Invoking RMIC. [/B]i get an error complaining of some classes not being present. but where as they do exist in my project. Does anybody have any clue of why this happens Thanks in advance. | |
hi.. I am using struts 2.. I want tabs on my jsp and my code is.. On first Jsp i used to create tabs which works fine for me. [code=JSP]<s:tabbedPanel id="test" labelposition="middle" > <s:iterator value="teamlist"> <s:url id="resultsUrl" action="navigateChangeTeamAction.action" > <s:param name="teamCode" value="teamCode" /> <s:param name="teamName" value="teamName"></s:param> </s:url> <s:div label="Team2" theme="ajax" … | |
Hello, I wrote an add method but for some reason it does not add more than 3 values. Could anyone tell me why? here is my method: [ICODE] public void addValue(int value) { IntNode cur = head; IntNode prev = cur; IntNode t = new IntNode(value); if (value <= cur.data){ … | |
Hi, I'm using a JTextArea in a JApplet, and having difficulty trying to align the JTextArea on the x, y axis... I've tries setBounds, setAlignmentX & setLocation... Neither seem to work. Plz help! This is what I have: [ICODE] public class Testing () { JTextArea TxtArea; Container Panel; LayoutManager Layout; … | |
Suns Java style rules specify that accessors should follow the getX/setX pattern, and most Java API mathods follow this... except for some very common exceptions such as: String length() enum name() [NB new to 1.5, not a legacy!] ArrayList size() etc It seems that there is another pattern operating here: … | |
Hello, I am having problems using an ObjectInputStream to read from a file. My program uses a File to check whether or not a specific file exists. If it exists my program will attempt to create a FileInputStream for the file and associate an ObjectInputStream with it. It should first … |
The End.