36,051 Topics
![]() | |
Ok...The assignment is to create a mortgage calculator with a GUI that asks for the principle amount, has a drop down box that allows the user to select an interest rate and term (ie 7-yr at 5.35%) and displays the informat, payment, and an amortized payment schedule...I beat my head … | |
Hi, I'm not sure if this is the right forum but.... I'm doing a project for college which involves Learning Content Managemnt System. I've developed a few features for this including chat, forums, etc. I want to develop an SMS system to use in conjunction with the chat application ie. … | |
hi, I have to do a program that generates 'n' different combinations of 7 different numbers between 1 and 49, so I did this: [CODE]import java.util.*; public class Totoloto { public static void main(String[] args) { System.out.print("Quantas apostas?"); Scanner s = new Scanner(System.in); int n=s.nextInt(); int[][] apostas = geraApostas(n); for(int … | |
He wants to input in the program an undefinite number of (numbers like 1, 2 etc), all positive. With that done he wants the program to randomize these numbers and show them one at a time in a random distribution. i thought it was easier when he asked but i … | |
Hi, my Dear Friend i have created a Chat GUI application in java, now i want to change the look of my GUI application, for example like Yahoo or MSN messanger... please help me to do so... very very Thanx in Advance...!!! | |
I wrote this simple java program to test the repaint mechanism in Java for my Eclipse IDE (not that it works on XCode either). The repaint() mechanism is not repainting, it does not erase the code previous to it in the graphic. It should according to everything I've read. Help … | |
Hi, I'm working on creating my first game to sharpen my programing skills and as a great learning experience for programming in general. I'm using private ints for the stats and was working on get and set methods for retrieving them and changing them and I was wondering if anyone … | |
Hello everyone! I'm a Java newbie and I'm trying to create an applet that will draw a graph to find the roots of a cubic equation y = ax^3+bx^2+cx+d. The user has to input the range and the values of a, b, c and d. I've done the layout but … | |
Hello, I am having a null pointer error, don't know where it came out. Can someone check this code for me please: The error is in the sendBytes methods, I have put a comment over there, actually there are two null errors. 1. [code] pw.println(filenm);[/code] 2. [code]out.write(buffer,0,bytes);[/code] Thanks a lot … | |
ok so I need to use a 2d array to draw a hangman picture for a hangman game. the picture should be something like this ============ |<space>| |<space>O |<space>/|\ |<space>/\ | | but when i run this code with main. i get this = = = = = = || … | |
Hey, got a problem with connecting to some ldap's. [CODE]Hashtable data = new Hashtable(); data.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); data.put(Context.PROVIDER_URL, "ldap://" + host + ":" + port + "/"); data.put(Context.SECURITY_AUTHENTICATION, "simple"); data.put(Context.SECURITY_PRINCIPAL, "cn=" + username); dane.put(Context.SECURITY_CREDENTIALS, password); DirContext ctx = new InitialDirContext(data);[/CODE] I can connect to SUN's ldap using this, but there are … | |
i wanna know if its possible to set one of my JPanels as my background ?? i have been googling up all day n i only find dat u can attach a .gif as ur background or juz plain colour but haven been able to find anything on this... please … | |
Iam trying to show some results from database - multi results - on JSP page using struts, already did the servlet code to fetch the data as follow : [CODE] private void manage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ ArrayList cats = new ArrayList(); PrintWriter out = response.getWriter(); try{ db.rs … | |
Hi to all I need some help to write a java program to parse 2 text file one containing the details of the database and the other the data that will be used to insert in the tables of the database A sample for the first file : schema : … | |
I want to make a server (FTP) client in which the client request a photo from the server i can't find any reference that teach that i need a simple one since i am a beginner Thank you | |
[B]chnamsv ,chprtsv , hostent ,ifconfig ,mknamsv ,no ,rmprtsv [/B].... where all these tcp/ip commands are implemented.Is there any programming language that implements these commands or any network tool that uses these commands. please suggest me.... | |
pls whats the difference between writing a procedure,method and function. | |
hey, I have done my bachelors in Electronics (B.E in electronics)and was working in IT comapany in asp.net,VB .for 6 months.now i want to shift to java,j2ee . i now have to show 1 year experience in java ,j2ee but can u please help me as too wht should i … | |
Hello, I'm doing a school project in .JSP and I came across this syntax error while inserting data in my database. [CODE] DB Query: INSERT INTO MainApplicant (MainApplicantId,FullName, MaritalStatus, Height, Weight, Gender, AgeAsOfLastBDay, DateOfBirth, PlaceOfBirth, IDNo, CountryOfIssue, Nationality, Race, HomeNo, OfficeNo, MobileNo, Address, PostalCode, CorrAddress, CorrPostalCode, EmailAddress) VALUES [COLOR="Red"]('P-8915710B,[/COLOR]'Jaslyn ', … | |
hi, i have a JFrame... one menuBar placed on a JPanel.. and then two JPanel with different things (let me call them ActionPanelOne, and ActionPanelTwo). i put the JPanel (with JMenuBar) North of the JFrame, and menuIteam will call the 2 ActionPanel individually to come up. my problem is: Once … | |
Ok so here is the problem: i am working on a code that will read a date from the keyboard in MM//DD//YYYY format. and then determines if it is a valid date or not. So far I have gotten: [code] import java.util.Scanner; /** * Program: UseCheckDate * File Name: UseCheckDate.java … | |
i have a file like a1 0.7 a2 0.5 b1 0.6 b2 0.8 a2 0.4 b3 0.6 a1 0.3 a2 0.4 a3 0.7 i want to read a file data and add values if it has same variables.Ex; a1=1.0 a2=1.3 a3=0.7 b1=0.6 b2=0.8 b3=0.6 whats the concept used to done … | |
Hey there, I am just a little confused with the code below, i parse the XML file although i cant call functions from outside the main. My programming isnt really up to scratch. Ive had a long break so now im paying for it :( Any help/ suggestions would be … | |
I am unable to execute these codes. This code is a replica from a website. I used Testing.java and Person.java. Should the files be named comparable.ex01.Testing.java and comparable.ex01.Person.java? As I am pretty new to java I have this doubt. [CODE] package comparable.ex01; import java.util.Arrays; import java.util.ArrayList; public class Testing { … | |
hi, I need some serious help with this topic, I am a newby at this so here I go... I am developing an webapp using a servlet as a "controller" and the jsp just to show the graphic part. The thing is: how can I get information from the jsp, … | |
In my application I have to retrieve names from database EMPLOYEE and display on my myPage.jsp page as a list when the page loads. But the problem is that I fail to display so . myPage.jsp [code] <html> <body> <form method="POST" action="/MyServlet"> <p> </p> <p> </p> <table width="13%" align="center" > <tr> … | |
Hello, I have just finished writing the code for my FTP application but according to my code, everything should work fine. But when I run my application, the file is not transfer to the server. Can someone please check where I am going wrong. I am sending the code as … | |
Hello everyone, Actually I want to learn more about thread, can we have more than one "run" for thread in a program ? [code] package ignisftpv20; import javax.swing.JFileChooser; import java.io.*; import java.net.*; import javax.swing.JOptionPane; public class FTPClient extends javax.swing.JFrame implements Runnable { JFileChooser fileChooser = new JFileChooser(); File fileUpload; ObjectInputStream … | |
Hello everyone, I just fall on an article on design patterns. They said that if you want to become a good programmer, you must follow design patterns. But till now I have never follow these patterns. I don't even know how to use design patterns, they said that there are … | |
i am using javascript for validations......i want to know all the function in javascript ...can any one tell me the link for free download javascript book plz | |
dear frnd help me to solve a problem I want to show search result on form which has a number field, as numbers are in simple formate of integer column(without commas),but when results come on form, the numbers greater then 1000, comma r automaticaly inserted in it......how to remove these … | |
Hi, I have one doubt in bundling jar files to .app Scenario is like this: 1. I have developed a sample java application like text editor. 2. I used the jar bundler application to to create the .app of my text editor. 3. I will launch the application and save … | |
Write a Java application that asks the user to enter a word and then determines if this word is a palindrome. A palindrome is a word that is the reads the same when spelt backwards as it does forwards. For example, the words noon and madam are palindromes. Note, you … | |
its supposed to draw an oval on MouseClicked: [code="java"] import java.awt.event.*; import javax.swing.*; import java.awt.*; public class PaintPad extends JPanel implements MouseListener { private int mouseX, mouseY; public static void main(String args[]) { PaintPad pad = new PaintPad(); pad.setGui(); } public void setGui() { JFrame frame = new JFrame(); JPanel … | |
Hi, I am after a step-by-step guide how to create a game in Netbeans IDE 6.0. Some examples would be appreciated. | |
Hi, i am using JMF,, how to play avi files in JMF, I have already install mp3plugin jar in jre.. still i got error as Failed to configure: com.sun.media.PlaybackEngine@b8df17 Bad header in the media: Currently files with no idx1 chunk are not supported Error: Unable to realize com.sun.media.PlaybackEngine@b8df17 | |
HI.. I created a java web application.. And i want to create one exe file.. So clicking on that exe file should ask for installation process.. Is there any software tool available for creating the installable file for java web application.. Thanks.. | |
I want to write a program , [COLOR="red"]JProgressBar [/COLOR]with [COLOR="red"]java.sql.Statement[/COLOR], where JProgressBar gets updated with Statement execution. i.e. I should get progress of Currently executing statement, so that i can set value of JProgressBar... Is it possible ? How to do it ? | |
Hi, Using jmf i have created a music player. When i move the seekbar knob the song starts playing from that particular point but it is not moving when the song is playing,only when i drag the seekbar it plays from that point. so please guide me how to make … | |
HI.. Is there any way to create an exe for java web application.. So that when i click on the exe , i should be able to launch my web application.. is there any software tool available for this.. Thanks.. | |
Hi, > > I have a question regarding testingUsing Junit ,I have to test the methods of a class in groups. > > For example, > I have a class P and it has three methods, method int f(string) and the > method float g(int) and the method string h(float), … | |
Hi, I've googled for awhile but still can't seem to find a way to upload large files (>1 MB) using JSP. So far all I've found were methods that read the file byte-by-byte and temporarily stores the data in memory, making the filesize limit that you can upload very small. … | |
Please help me, I am new to Java . My xml file structure is as follows--- <Procedure> <SP> <ID>100</ID> <Name>Employee</Name> <Inputs> <Input NAME ="asasa" DATA="sasas"/> </Inputs> </SP> <SP> <ID>101</ID> <Name>Display</Name> <Inputs></Inputs> </SP> </Procedure> I have generated the classes for the xml file using the commmand xjc. Now I need to … | |
Hi, Can anyone please help me.. Im doing a J2EE Project for my own understanding... I have developed the JSP pages, Java-Servlets for [B]Login Page [/B](Username Txt, Password Txt, Submit, Sign Up) [B]Registration Page[/B](Required Fields with Submit) No special logics are there, Just i want the following things to be … | |
I've got this bug in my progrom that I cannot figure out and it's due within the next couple of hours. I was hoping someone could help. My problem is in my main function that reads in from standing input but when the user types in $PART2 it is suppose … | |
Does anyone know if it possible to access an Ms-OLAP-Cube and use an MDX-query through JAVA without using XMLA, JPivot or Mondrain. Thanks Declan. | |
[CODE]public class Employee { private String name; private String number; private boolean valid=true; public Employee(String nm, String num) { name=nm; number=num; if(number.length()!=5) valid=false; for(int i=0; i<3; i++) { if(!Character.isDigit(number.charAt(i))) valid=false; } if(number.charAt(3)!='-') valid=false; if(!Character.isLetter(number.charAt(4))) valid=false; else { if(number.charAt(4)!='A'||number.charAt(4)!='B'||number.charAt(4)!='C'||number.charAt(4)!='D'||number.charAt(4)!='E'|| number.charAt(4)!='F'||number.charAt(4)!='G'||number.charAt(4)!='H'||number.charAt(4)!='I'||number.charAt(4)!='J'|| number.charAt(4)!='K'||number.charAt(4)!='L'||number.charAt(4)!='M') valid=false; } } public boolean getNum() { return valid; } … | |
Hello, I've got to find on a small lan (< 200 hosts) the host (or better one of the hosts) which has in its [I]registry[/I] a specific public name bound. My first idea was to write a loop in which for each potential host of the lan I perform a … | |
can anyone give me some hints /examples on how to use the java snmp package to send and snmp trap to a snmp host? thanks | |
Hello, I'm trying to write a program that evaluates a postfix expression using the vector class. I have done this successfully using stacks but I am experiencing trouble with vectors. Here is the error message I am recieving: I:\vector.java:26: type Vector does not take parameters public static int evalPostfix(String str, … |
The End.