36,051 Topics
![]() | |
yay this first time that I develop something larger ;) My problem: main method display a frame with buttons where you choose what function/action you want to perform. Once you press a button I want the main window become invisible and windows with option for function to become visible. So … | |
hi i m a final year student of computer systems engg, i have selected wireless information sharing systems as my final year project, i want 2 bulid an apllication like sql2gsm ,to accsess databas through sms,any body hav any idea, i wll appreciate it | |
How do you do this? I can assign each random values into arrays, but I cannot increment the value so that I can display each values with another for loops. It needs to be 5 to the right.. [code=java] import java.util.Scanner; import java.util.Random; public class LabAssgn_laksmono { public static void … | |
Hi, I need so help in the right direction. Don't know if im going in the right direction or not. I have a card class and a deck class that models the hans. Now I have tor create two special hands that will play two sperate games depending on which … | |
Hey guys..., Is there any way.....to use background image for a form...in j2me without using canvas because if i use canvas means i cannot add textfield and all... or else is there any option for setting different font color | |
i have a small problem in the jsp code i have written "to send the data from form to database". The table in the database has a primary key field whose values must be generated automatically. so, i have created a sequence named t_seq and have written it like this: … | |
Hello, I am a newb of Java applets. In the recent day, i got with a java code and is working properly with my current web page. I'm herewith attaching that source code. You just cut and paste it, save it as name.htm, and run it. Interesting pop up. am … | |
public class Doomsday { public static final int Monday = 0; public static final int Tuesday = 1; public static final int Wednesday= 2; public static final int Thursday = 3; public static final int Friday = 4; public static final int Saturday = 5; public static final int Sunday … | |
Hi. I have a bunch of Java codes I have done and I was wondering if there is a possible software or program to convert it into c++? This is because I've done it in Java and now my lecturer wants it to be in c++ >< The concept is … | |
Can somebody help me with this please. i need to create a //calendar on the frame. i got the frame but the calendar is not woking. import jpb.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DayOfWeekAWT { public static void main(String[] args) { Frame f = new DayOfWeekFrame("Day Of … | |
Hey, so I get a Driver error when I try to connect to my local mysql db. My code is in a servlet as follows [code] Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con=null; Statement smt=null; con=DriverManager.getConnection("jdbc:mysql://localhost:3306/sql?user=webusr&password=pass"); [/code] Thanks M | |
hi everyone im shazna i got this mate that has been working ahrd on her java coding and now she is stuck as she lost her original file of the coding she is starting from her older version and she is lost because she cannot figure out what is wrong … ![]() | |
i have used this formula to generate random number. [code=java]Integer random_number = new Integer((int)(Math.floor(Math.random() * (max - min + 1)) + min)); while(numbers.size() < noofQn ) { Integer random_number = new Integer((int)(Math.floor(Math.random() * (max - min + 1)) + min)); System.out.println("Random number"+ random_number ); if(!numbers.contains(random_number)) { numbers.add(random_number); } }[/code] numbers … | |
Hi folks , I just started to learn J2EE using Netbeans(5.5) and JOnAS (4.8.4 ) . I tried to run a simple session bean(stateless) invoked through client application. I successfully deployed in jonas using Netbeans (5.5) but i can't able to successfully run it. Here with i attached client application(client2.zip) … | |
I am supposed to create a hit the target class with multiple classes. First place a ball that moves horizontally on the cavas, then create another class with a square that shoot up three balls when the user click the mouse. This class extends Active Objects. Any ideas? | |
Hello everybody there. I am developing an application for peroject management. Now i require that any new user has to be created he should send an email to the adminstrator. and then adminstrator will make that person the user of the portal... So please help me out of this problem... … | |
i am using tomcat 5.5,but i am unable to connect to database <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY bgcolor="#8D9BCA" text="#333300" marginheight="0" marginwidth="0"> <center> <!-- row 2 --> <table height="1" width="381"> <td height="1" width="373"> <P align="center"> <P align="center"> <p align="center"><span style="letter-spacing: 1pt"><b><font size="3" face="Bookman Old Style">Login Form for Clients</font></b></span></p> <p align="center"> </p> … | |
hi I m gettting this error java.lang.NoSuchMethod , i hv tried but not able to get the answer, I m using one method that is in diffrent class and that class has public static void main(String[] args) { } Plz provide me wih solution. Jitender | |
hey guys this is my program ,every thing works great but i want to to make aloop which makes the program play again,idon't know how to do that for multi methods program can some one help me. i know i have to create string and use that to loop the … | |
Hi, I have been trying to learn how to create web services for last few weeks. In the process I learned about xml, mySQL, JDBC, servelets, and javabeans. At this point, if you give a specific task such as 'get price for a certain item from the database and display … | |
hi everyone. I´ve seen many examples of word counters but im still confused about my program. I have to do a word counter until words of 4 words specifying I number of times that appeared the word in the text, general procentaje, percentage of the words by number of letters, … | |
Im making a site to display reminders set by a client and retrieved from the db (Oracle) using JSP. How can I set the reminders extracted from the db into onto a date displayed in a table cell? Please advice. Thank you. | |
Hey, I'm getting so fustrated with this now!! I'm making a site in jsp and I have created the registration page and the login page and everything works fine. However I want to start to use the session login to personalise the page depending if they have logged in or … | |
Hello I need help. I need to write a program that changes all upper case letters to lower case letters and all lower case letters to upper case then the vowels with an *... it would look like this normal= UppER loweR caSe output should be this.. *PP*r L*W*r C*s*.. … | |
[COLOR=#0000ff]1 [/COLOR][COLOR=#941edf]import[/COLOR][COLOR=#000000] java.util.*;[/COLOR] [COLOR=#0000ff]2 [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#941edf]class[/COLOR][COLOR=#000000] CALC[/COLOR] [COLOR=#0000ff]3 [/COLOR][COLOR=#000000]{[/COLOR] [COLOR=#0000ff]4 [/COLOR][COLOR=#941edf]public[/COLOR][COLOR=#941edf]static[/COLOR][COLOR=#941edf]void[/COLOR][COLOR=#000000] main (String[] args)[/COLOR] [COLOR=#0000ff]5 [/COLOR][COLOR=#000000]{ [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] much;[/COLOR] [COLOR=#0000ff]6 [/COLOR][COLOR=#000000]System.out.print([/COLOR][COLOR=#00cb00]"\nEnter the number of numbers "[/COLOR][COLOR=#000000]); [/COLOR] [COLOR=#0000ff]7 [/COLOR][COLOR=#000000]Scanner input=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#000000] Scanner(System.in);[/COLOR] [COLOR=#0000ff]8 [/COLOR][COLOR=#000000]much=input.nextInt(); [/COLOR] [COLOR=#0000ff]9 [/COLOR] [COLOR=#0000ff]10 [/COLOR] [COLOR=#0000ff]11 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][]num=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][much];[/COLOR] [COLOR=#0000ff]12 [/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000][]perc=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]double[/COLOR][COLOR=#000000][num.length];[/COLOR] [COLOR=#0000ff]13 [/COLOR] [COLOR=#0000ff]14 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][]den=[/COLOR][COLOR=#941edf]new[/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000][num.length];[/COLOR] [COLOR=#0000ff]15 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] total=0;[/COLOR] [COLOR=#0000ff]16 [/COLOR][COLOR=#941edf]int[/COLOR][COLOR=#000000] total1=0;[/COLOR] … | |
Hey buddies.., I m developing some project using java swing... in that I got a problem like......if i use timer thread in label means i couldnt perform any other action in that panel like button click event and all.... it becomes too slow in action.... | |
I am trying to use an iframe in my application [COLOR=Red]mainpage.jsp[/COLOR] <HTML> <BODY> <form name="form2" method="post" action="action.jsp"> <input type="text" name="name" value=""/> <input type="submit" name="submit" value="submit"/> <iframe src="ifream-page.jsp" frameborder="0"> </form> </BODY> </HTML> [COLOR=Red]ifream-page.jsp[/COLOR] <HTML> <BODY> <input type="text" name="address" value=""/> </BODY> </HTML> But when I press the submit button I can only … | |
![]() | I decided to evaluate a Java game and I chose the famous snake game (actually "snake pit") , since I am just a begginer at these things I need some help :sad: ! What are the typical Java characteristics in this game?? ([COLOR=red]How can I recognise that this is a … |
Hey guys, I need help... I need to write a program that converts uppercase to lowercase letters in java, in netbeans 5.0, and i have no idea how to do it. Thank you, i would apreciate your help. | |
![]() | I decided to evaluate a Java game and I chose the famous snake game (actually "snake pit") , since I am just a begginer at these things I need some help :sad: ! What are the typical Java characteristics in this game?? ([COLOR=red]How can I recognise that this is a … |
Hi, Please anyones help how i upload csv to tomcat. Thanks in Advance | |
Hi all. I want to know in which case, it should use two forms in a one web page (example situations) (Except that when the action pages are separate)….? | |
Is there any provision lik customised panel in java??? Can we design a customized frame in java?? i jus wanna knw whether v can or not.. don need t code:cheesy: if t code is available den post it :mrgreen: Thnx in advance! | |
Ive Come Up wid another question?.. Is ther a timer component in JAVA? | |
Hello: I have recently been studying Java; I have followed a few tutorials and building some simple apps. I am wanting to try applets. I read about them tonight and followed an included tutorial in order to get an introductory feel for doing so. My questions do not pertain to … | |
Hi, I am using postgresql 8.1 an I am trying to connect to the postsql from JSP and servlets but I cannot find the driver name for the postgresql so I can use it in the jsp connection. i hv been sujjested to use jdbc but cannt find advantage of … | |
can any one plz tell me how to execute jsp in tomcat .i am unable to execute & how to create war files to deploy | |
A friend of mine and I are taking an external computer science test. While studying the review it has become apparent that some of the syntax presented is quite unfamiliar. Here are a few examples: [INLINECODE]Stack<Integer> s = new Stack<Integer>();[/INLINECODE] For this line of code what exactly is the purpose … | |
In the JPanel I placed JTextField and JButton, as the layout I'm using GridBagLayout which is left to default align (center). However because of the size of whole JFrame I would like to get JTextField to left and JButton to right. How do I do that :?: [code] private GridBagLayout … | |
I have a small problem........ I have designed a page which should be accessed by valid users. after logging in , they have to access the page via a link. for this i have used send redirect method . but my session object is not being passed here. via the … | |
Hi, I have written a code, when it runs it loads an image and after getting image size it sets the size of the frame in the constructor. But now i want to load image using FileDialog box and then update the frame size as well. But when i access … | |
[quote=Raineri33;5606]I am new to c++, and i have a program to do as follows: 1) fill a 2D array for the seat chart with * ... DONE 2) add a passenger to the plane I am stuck here, i have the info put into the cin statements etc, but how … | |
Hi Experts, Can i put my JSP web application into Windows IIS server .Now its working fine under Tomcat 4.1 server .But i want to put it in to my IIS server .Is it possible ..If yes pls let me know with Procedure ...... Thanx in advance Jeet | |
[B]Hi Freinds,[/B] [B]i had to compare 2 wav file,I am able to Capture the sound waves using sound apis.Is there any method to compare two wav files in sound apis,or should i use JMF for this.[/B] [B]Please Advice[/B] | |
Hi, I am working on a personal program, not homework trust me, and the main engine driving it is a random number generator. Unfortunately, I don't know how to build that engine! To make a long story short, I have objects that have a ranking, from 1 to 10, that … | |
Hi, im very new to java. i would appreciate if some one can help me out with a Java program to calculate simple interest. Thanks in advance regards krishna | |
Hi this is my first post here:cheesy:. I'm having a problem with how to throw exception in an applet and how to[B] add [/B]actionPerformed to other buttons. This applet calculates the sqare roots of an equation. It calculates the stuf ok but the thing is that I want to throw … ![]() | |
=================================== This is the binary search public static int binarySearch(int[] list, int listLength, int searchItem) { int first=0; int last = listLength - 1; int mid; boolean found = false; //Loop until found or end of list. while(first <= last &&!found) { //Find the middle. mid = (first + last) … ![]() | |
Could someone please give me examples of a full GUI code.. Where I can find it to be precise.. Like images of it along with the java source code..thank you ![]() | |
this the my first assignment given by my lecturer. i've tried to do it and manage to compile..but the problem is i got confused on how this program execute? is it line by line like c++? can someone show me the sequence on how my program being executed and maybe … |
The End.