35,618 Topics

Member Avatar for
Member Avatar for ashish.appin07
Member Avatar for toldav

Please any one can help me to fix my last statement of code I'm traying to have a user input the temp and then convert ot either F or C. But my last if else statement doesnot engage well with the over all code. I'm beginner Java programnig. Thank you …

Member Avatar for Taywin
0
116
Member Avatar for amrita111

I have created two folders with name 1)JSP containing jsp file(for login) 2)JS containing javascript file(for login validation) I have linked javascript file with jsp file int he following way. <script type="text/javascript" src="../JS/loginValidate.js"> How can I access parameters of login page(jsp file in JSP folder) in javascript file?

Member Avatar for code739
0
104
Member Avatar for Forte1292

go through every combination ie(0,0,0,0),(0,0,0,1), .... ,(3,3,3,3) But in a general way such that it's always 0-3, but it may be 4 digits or it may be 5 digits or any other number? If I know the length I could do nested for loops, but since I don't...is there an …

Member Avatar for Forte1292
0
121
Member Avatar for manalibhadula

Hi, I am new to Java and is working on code in java which i need to keep a static sql script in property file and passing variable to it through java code and then iterating that property file to pass the variable value and writing that generated script to …

Member Avatar for mshauny
0
386
Member Avatar for garyjohnson

I have javascript code with displays the placeholder attributes on browsers which dont support HTML5, I am testing the code in IE. It works on every field which is type text. But when its type"password" it displays the placeholder as a password and not text. I need to it show …

Member Avatar for LastMitch
0
882
Member Avatar for hwoarang69

I just download new version of eclipe on to my computer and it create a folder called 'workspace'. Is there way i can put all my project from my old workspace in to new workspace? i tried copying from old workspace and pasting in to new workspace. than i open …

Member Avatar for tux4life
0
144
Member Avatar for erms

Hello, I want to compile multiple jpeg images into a AVI video. I downloaded the JMF, but can't seem to find any code samples to get started with it. A google search showed that download has samples shipped along with it, but mine doesn't have any samples, just jars, readme, …

Member Avatar for erms
0
201
Member Avatar for Digital64

Hello everyone, I'm trying to make a simple telnet chat program, but I quickly came to the realisation that I don't really know how to get the client to bind to the server. I understand the logic of how I'm going to send data to a connected client, but the …

Member Avatar for rubberman
0
203
Member Avatar for erms

Hello, My program needs to capture the screen every 1 second until stopped by pressing the GUI button. In the GUI class I used a for loop to go infinite, but that probably does not work because it takes time to capture, & save screenshot, but the for loop fires …

Member Avatar for erms
0
4K
Member Avatar for unholy.vlad

Hi all, following is the code for a simple but pleasant animation (3000 colourful circles with random sizes etc. bouncing off edges of the app window) What I have problem with is getting the "coef" to be automatically updated on "jSlider1" change in order to control the animation speed Also …

Member Avatar for mKorbel
0
88
Member Avatar for zlloyd1

I am attempting to make an interface with textfields where the data entered into the fields is stored in a variable, and then written to an external file. I am trying to use FileWriter fw = new FileWriter() to tranfer the variable to the file, but I cannot find an …

Member Avatar for Banderson
0
4K
Member Avatar for fatalaccidents

Hey everyone, I'm new to the concept of stacks and queues. I think I have the basics, but I have a quick question. If I am wanting to swap an object, say x, for another object, say y, in a stack or a queue, is this possible without introducing an …

Member Avatar for bguild
0
228
Member Avatar for gtkesh

Hello everybody. Here is my remove method for bst. As you all know, there are 3 cases to consider while removing a node from bst. For the last case, when a node (which is to be removed) has 2 children, I want to use predecessor instead of successor to change …

0
122
Member Avatar for pattmorter

Hey everyone. I was doing a simple test program today that my professor is asking us to do just to test to see if his Ant script works correctly and I came across a problem that is confusing me. My prof wants us (after created all of our homework class …

Member Avatar for pattmorter
0
202
Member Avatar for xHellghostx

Hello Is there anyway to move a string array elements to a vector and have an output that list these elements? Let's say the array contains the following elements `String arraySize[] = {"A", "B", "C", "D", "E"};` and I want to move these elements to a vector.. How would I …

Member Avatar for tux4life
0
602
Member Avatar for learner01

Rewrite above program such that the processes instead of threads are created and the number of child processes created is fixed as two. The program should make use of kernel timer to measure and print the real time, processor time, user space time and kernel space time for each process.

Member Avatar for learner01
-3
250
Member Avatar for lewashby

I use Mint Linux. What do I need to get in order to get started programming in java? Is there a particular IDE that is good for Java or should I just stick with vi(m)? My skill level is as follows. Iv succesfully written a date validation program in C++ …

Member Avatar for deceptikon
0
174
Member Avatar for xHellghostx

I am having a problem with a program I wrote.. For the life of me I can't figure out what's wrong with the program.. the program should calculate a random value and then outputs an intrest rate and present value.. The problem is that I am getting zeros instead of …

Member Avatar for JamesCherrill
0
180
Member Avatar for Violet_82

Hi all, I have just installed the jdk on a windows7 machine 64bit. I run the first test application in the terminal and got the following message: "'java' is not recognized as an internal or external command, operable program or both file". So I had a look online and found …

Member Avatar for vishnu.khera.5
0
439
Member Avatar for SoulofchaOs

There are 2 sets of 4 buttons being created. The `ImageIcon` of the 1st set of buttons are to be dragged onto the 2nd set of buttons. The boolean `enab` variable is for determining if the 2nd set of 4 buttons are enabled or not. I initially set the boolean …

Member Avatar for JamesCherrill
0
203
Member Avatar for a4academics

package com.servlet.filter.UserAuthFilter ; import java.io.IOException; import java.util.ArrayList; import java.util.StringTokenizer; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; // Implements Filter class public class UserAuthFilter implements Filter { private ArrayList urlList; public void destroy() { } public void doFilter(ServletRequest req, ServletResponse …

Member Avatar for peter_budo
0
324
Member Avatar for cgogte
Member Avatar for harinath_2007

Hi, I am messed up with jscrollbar in my applcation.I have a jtextarea with jscrollpane in my application. Whenever the text in the textarea fills up completely , i want the scrollbar to scroll down. As soon as new text is added to the textarea , the scrollbar should move …

Member Avatar for harinath_2007
0
102
Member Avatar for garyjohnson

This is my java code, all the id's are the ids of divs on the page. They are all labeled respectiviley. It takes the input of the form. There are six possble errors that can occur which are, the emails dont match. First name contains characters other than letters, last …

Member Avatar for garyjohnson
0
235
Member Avatar for reezn

hi what i want is to separate a file in many variables and store it in an arrayList to use it for creating objects and printing. The file is as follows: L1234; Land; 50000 euros; 120 sq.m.; Artemida Attikis; near the sea; for sale FF4234; Flat; 120000 euros; 72 sq.m.; …

Member Avatar for reezn
0
433
Member Avatar for london-G

Hello, When I am trying to build my application in Netbeans I have this error message coming up in the output. null575775 is invalid. I have check the null file but there is nothing in there. Any ideas?

Member Avatar for london-G
0
395
Member Avatar for edensigauke

Here is my code, and i would like to read images from my mysql database and display it over a JButton using the BufferedImage casting into Image. Everytime i want it to display, it would fail to read the data and run to the Exception, may i please have help …

Member Avatar for edensigauke
0
659
Member Avatar for lakshmi_suchi
Member Avatar for DeepAnalyzer

Hi, I put a JTextArea on mu gui.But i can't print multiple lines on that?Why is that?.I have created a Item class and then created an Item object array in my gui.Then i print it on my jTextArea.This is my code i have put in my button. jTextArea2.setText("Item Name"+" | …

Member Avatar for Lucaci Andrew
0
220

The End.