36,051 Topics
![]() | |
Hi every one. I'm creating a website using jsp. One of the functionality required is to process online payment which will be made by credit cards (e.g visa card numbers). So how shall I go about? Thanks in advance. | |
Hi everybody, I just want to develop a web application for sending sms using java/jsp. Normally i have seen people using either gsm modems or bluetooth or connecting mobile to pc and then send sms. I am planning to develop a web application in such a way that it sends … | |
Hello, This topic is not relevant.I am sorry for that.But I'll appreciate your help. I have to do clustering and profile generation on the data from e-commerce site.( contains 8000 entries).It's a binary file. I did clustering using tool cluster.exe and could find result that if number of clusters increased, … | |
I'm supposed to make a banking system that allows me to make transactions for individuals bank accounts. I'm also supposed to primarily use arrays and for loops and those kind of basic things... It's an intro to programming class. I'm having trouble getting my account class to work. I'm trying … | |
this is a linked list based queue private class Node { String value; Node next; Node(String val, Node n) { value = val; next = n; } } public String dequeue() { if (empty()) throw new EmptyQueueException(); else { String value = front.value; front = front.next; if (front == null) … | |
OK, so I'm making a video game and I have a simple inventory code. This is the inventory class: [code] public class Inventory { static int slot[] = new int[17]; static boolean[] taken = new boolean[17]; static int item[] = new int[17]; static int count[] = new int[17]; public static … | |
I have two issues that I need to solve on this program that are giving me some troubles. I have scanned google and my text book and so far coming up empty. Problem #1 - My program works for palindrome words and 2 word palindromes like "race car". But I … | |
hi... i want to create a simple mobile application which can give a slideshow from a powerpoint ppt and has basic text editing functions.... can someone please guide me how to go about with it.... is there any api which i can use..... is it simple to do.... it's really … | |
Hi there, I have got a problem confused me. I use IntelliJ IDEA to write a small GUI program with images and icons. If I run it using the IDE, it perfectly runs. However, when I try to start the program from command line, it runs without showing the images … | |
i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; … | |
Anyone else having issues with the javascript on Daniweb crashing Firefox 4? It doesn't happen all the time so I'm guessing it's some advertisement that is doing it. Just FYI I have no plug-ins, add-ons, whatever. Just the browser. It rarely happens in the programming forums, mostly in the Community … | |
this assignment has stomped me. i thought it about long and hard and can't imagine how would i edit the quicksort to sort an array-based queue object. i'm required to use an array-based queue class which has only 3 methods: enqueue(), dequeue(), and peek(). they're pretty self explanatory. i cannot … | |
Hi guys, so I had an idea for an app that would basically log onto a website with a giver username and password, and then it would pull specific data from that website. Any ideas on how I could do this? What should I read about? I've never coded anything … | |
Hey, i have written immanence java program and now i have been asked to create sequence diagram for it. i am really unfamiliar with uml therefore i was wondering are there any good reverse engineering programs that would create sequence diagrams for me? p.s project has been written using netbeans … | |
Hi, It's about a year that I have been coding on Java but I still have basic problems working with threads. My main concern is that I can't understand the logic they obey in their behaviour. I know that they are processes which run independently but I don't know how … | |
Dear all, Can anyone tell me how can I call Java function to VB.net window application? Regards | |
hi all, i have an applet code here..i wanna do database operations later on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp.java 1.0 11/04/09 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create … | |
Is there any methods that in java can make or prevent its window frames from being moved or being dragged, like those in windows 7 installations. post it guys if any and it will help others too! thanx in advance. | |
Hey, everyone, as you can see, first post. I'm just stumped. I've tried everything I can think of to [COLOR="Red"]highlight certain keywords as the user types in a non-CPU intensive manner in JTextPane with a StyledDocument[/COLOR]. I'm almost sure there is a logical way that I cannot see, but here … | |
Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only … | |
plz giv me some useful link to study struts 2 thanks in advance | |
I was wondering how I could create a java application program which allows sending free sms to any network subscribers without the use of any hardware component (i.e. GSM modem). Is it possible? What are the things should I consider and how does the logic work? Can anybody tell me … | |
Hi everyone, I have an assignment where, given a list of points in 1 dimension (that is, they are points (x,0)), to find the closest pair recursively. I've been moving along pretty well and I think I have a sound algorithm in place, but I hit a roadblock. My algorithm … | |
So, I created some code in a jpanel. Is it possible to display just this panel or do I need to put it into a form. Either way, how would I go about doing it? | |
This program accepts input in the form of a String of names and grades. It picks out the names and picks out the grades and puts them in seperate arrays. Then it needs to output them together sorted by grades and then by names. I can get the Grade Order … | |
ive been trying to get slick2d installed properly on my mac, im using netbeans and followed a tutorial found here [url]http://thejavablog.wordpress.com/2008/06/08/using-slick-2d-to-write-a-game/[/url] but something goes wrong when i compile. i think it has to be a pathing issue but cant figure it out | |
I am running Vista and I am unable to do a reinstall of Java. An internet explorer 7 file updated fairly recently, but I can't remember how to uninstall that one and I think that I'm remembering correctly, that that turned out to be one of the issues last time. … | |
import java.text.*; // format output import java.util.*; // Scanner class public class gpa { public static void main(String[] args) { DecimalFormat num=new DecimalFormat("#######.00"); // Create format for name num (courseName) DecimalFormat gpaNum=new DecimalFormat("##.00"); // Create format for name gpaNum (gpa) // variable names gpaNum gpa=0; // grade point average double … | |
Hi, Can anybody guide me about how I can merge large sorted blocks of a file whose records are English words? I'm doing this on a personal computer and my programming language is Java. I'm passing information retrieval this semester and the file has a size about 1.5 GB and … | |
Ok, so I have images for my applet, but when I upload it online, none of the images appear. When I add an image, they are all Image Icons for Labels, and I just browse to the folder on my desktop, selected the image, and hit ok. It then shows … | |
Hey everyone, I am writing a GUI that allows a person to enter all their own numbers into an array, then they can search the array for any number they want. I have it almost completely written except for two compile errors I can't figure out The first one is … | |
is there any way to implement auto complete in a jtable cell. i checked for selectin a part of the text in the cell like the option in jtextfield. but seems that there is no option for that in jtable. please guide me in any one of the above.... | |
Hey guys, this is my piece of code from a GUI that i am building, in which i have a button "Delete Row" and a table besides it which has, let's say 2 rows and 4 columns. Now when i select one of these rows, and press the "Delete row" … | |
Hey everyone, I am writing a program that needs to take 10 integers and display them, then it needs to sort them in order from lowest to highest and then display them again. I was trying to use selection sort to sort them, but I think I set it up … | |
Hey everyone, I am writing a program that requires me to use an array to find the mode of 10 numbers. I have working except I want it to just print the mode, but it keeps printing every number I enter. Any suggestions? Thanks in advance. [CODE] import TerminalIO.KeyboardReader; public … | |
I'm trying to display some text in a JTextArea I have set up in a simple GUI. Easy right? That's what I thought, but I'm clearly not that advanced at Java. The hook is the information I want to display in the JTextArea is in a text file (file.txt). Right … | |
Ok, so I've never programmed for android before but I downloaded the eclipse plug in. I am proficient in Java and was wondering how easy it is to transfer programs into an app. Are there any useful tools I should know about? | |
I have a batch file that sets JAVA_HOME, PATH and CLASSPATH and calls a jar file. The last line in the batch file is "java -classpath test.jar test %1". When I run the batch file from the command line, using a paramater, the parameter displays in the console as expected. … | |
I have implemented the addActionlistener for the Add Contact button in this GUI setup (please try running this code in your computer to know what i am talking about) and when i click on Add contact, the new frame pops up, i enter the details in the New contact frame, … | |
Hey all. I'm making a program which uses many buttons and a textfield. I need help and some explaining on how to organise components within a panel. For example,using [CODE]mainPanel.add(BorderLayout.NORTH,display); mainPanel.add(BorderLayout.CENTER,background); mainPanel.add(BorderLayout.EAST,buttonBox); mainPanel.add(BorderLayout.WEST,buttonBox2 );[/CODE] All components (the buttons within the background panel,the buttons within buttonbox1/2 and the display field) are … | |
How do you override a superclass's methods with a subclass? These are my two programs, the first being the super class, and the second being the subclass of which I am attempting to override the superclass's methods. [CODE]// This class represents a walker with two feet. import java.awt.Image; import java.awt.Graphics; … | |
hey, i have jsp file that contains drop-down list once the value is selected from drop down list one of the javascript methods gets invoked that alerts me with what has been selected. what i need is once the value has been selected it would be sent to a my … | |
My program needs to tell whether two Students were selected, and if so I need to output to the screen their averages. I got the first specification which works for only one selection (just shows grade) but I have no idea to tell whether they selected two from the list... … | |
Problem: it print "null" in front of every line for example input this is sparta output [COLOR="Green"]null[/COLOR]histay isay partasay [CODE]import java.util.*; public class PigLatin { String[] piggieLatin; String[] sentence; public PigLatin(String[] random) { sentence = random; piggieLatin = new String[sentence.length]; } //repalce everything beside a~z with space public String punctuationFree(String … | |
Hello, I need to perform a binary search on an array of objects but to do so I need to have them sorted. I've been looking online and no one really has a good explanation of how to conduct a quick sort on an array of objects. If you can … | |
i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] … | |
So I have an array [CODE]String[] directions = {"n", "e", "s", "w"}; Random dirPick = new Random(); int rNum = dirPick.nextInt(4); String direction = directions[rNum];[/CODE] Now say that one of these doesn't exist and if it picks it I need to take it out of being able to be picked. … | |
Hello all, I am currently in the process of learning C++ for a work term position I am on. After hitting a wall trying to teach myself from books I decided it might be easier to translate some old Java programs from school into C++ to get a better understanding … | |
This is homework. I have the code written, though. The thing works. Mostly. The assignment is to write a program that reads a list of integers from a file, prints the maximum value in the list to the console, removes the maximum value from the list, and stores the (smaller) … |
The End.