35,619 Topics
![]() | |
Hi. I´m having some trouble with my search code. I'm trying to make it search in either my varenummer field or varenavn field. My method to do so looks like this: [code] public KasseInterface søgVare( String varenummer, String varenavn ) { System.out.println( "Søger efter vare med varenummer: " + varenummer); … | |
Can anyone please help me with my sorting Array...my teacher asked me to do a code for sorting array using html and servlet. I don't know how to start this program since I am still new in java...please help me...if you can provide example code then that would me appreciated... | |
Can anybody please tell some way to access MS Access database from a jar. I am using the following line of code: ClassLoader.getResource(databaseName); But its not working. Can anybody please help? Thanx, Vishal | |
We currently have a working JSP script that can add and average integers, now our professor wants us to make the same script but using a different language, she wants us to program it using "java servlet". Our script is currently posted at [url]http://www.patrickmagpantay.com/wishlist.html[/url] . Please help us :( | |
I coded a script, Currently I can add and delete items to the database but I cannot edit the data. Here's my 3 paged script : Christmasswishlist.java import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; /** * Servlet implementation class for Servlet: ChristmasWishlist * */ public class ChristmasWishlist … | |
[code=java] import java.io.*; import java.util.Scanner; class heh {public static void main(String[]args)throws Exception { BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); Scanner me =new Scanner(System.in); int a[]= new int[20]; boolean find = false; int b; int c; System.out.println("Enter 20 numbers:"); String read=input.readLine(); String token[]=read.split(" "); for (b=0; b<20;b++) {a[b]=Integer.parseInt(token[b]);} System.out.println("Enter No. u want 2 … | |
Can some one please guide me on creating a JSpinner that only supplies value on MouseRelease Events. As dont want to send the intended application updates as spinners contents while rapidly changing. (there needs to be a timeSinceRelease accounted for.) but Its what i need to write like the particular … | |
Hi, I'm new here, but you'll probably be seeing too much of me before long ;) My names Daniel. I have this sort method for sorting (essentially) an array, but it does strange things that i can't quite figure out, and it doesn't sort. the array is a feature of … | |
hi I have created the discard method in my player class and play is a Card[] so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]" any help is appreciated thanks | |
Hi.... I've wrote a code about arrange the names in descending order. But, I'm not sure it's right or wrong. Can u help me, please? The code is: import javax.swing.JOptionPane; public class Names { public static void main(String[] argus){ int i = 0; int n =10 ; int j; String … | |
Can anyone help me to do this if a jTextField has text like this 1A2B89C0 array[0]=1; array[1]=10;//A should convert to 10 ,B to 11,c to 12,........ array[2]=2; array[3]=11;//B to 11 array[4]=8; array[5]=9; array[6]=12;//C to 12 array[7]=0; actualy this part is needed for a program which is convert a number in … | |
word.doc attached. please tell me if it isn't attached thanks | |
Hi Friend's... I can't make this program...Plz help me to make this program.. Make a Driver class TUNES.In this class Creates a CD Collection Object and adds some CD's to it Prints reports on the status of the collection.and then make a class CDCollection and write a constructor that creates … | |
hi i created a html form in which i took a date as input now how can i determine the day(sunday or monday etc) on that particular date . | |
I have made application using JBuilder 6 (JRE 1.3) Operating system WIN XP (JRE 1.3) When I run application in JBuilder evrything works fine. Now I made executable .JAR file using JBuilder (wizard -> archive builder -> application) When I executed the .JAR file the background color on JButton (javax.swing) … | |
Hi there, I have this null pointer exception error in my code which I can't fix. I'm just trying to create an interface which can display an image, text and 12 buttons all at once. I've checked out loads of other threads, but I can't see where the Null entry … | |
HI all am trying to construct this hybrid of java and mysql. the data comes from a mysql database and I want it to display in the gui. this I have achieved thus far. However I have buttons that sort by surname, first name, ID tag etc....I need event handlers … | |
i m new to java...i made my first applet...a simple applet to showing "THIS IS MY FIRST APPLET"..but it's not working...i m not able to see it in mozilla firefox and IE7... plz help.. the code is here... [B]tryApplet.java[/B] [code=java] import java.awt.Font; import java.awt.Color; import java.awt.Graphics; public class tryApplet extends … | |
sweet hello to all, someone tell me that how to capture the Active(current) window using java. I have captured the whole screen(desktop) and wrote jpeg file of captured pixels. Now, i want to capture currently open program's window(e.g. My Computer, MS Word etc). waiting... best wishes Waqas Dar | |
[B]hi all, i have to get the number of pages for a pdf document using java. i checked in java pdf api library but i have not get the correct idea. can anybody help for my work pls. if u have code for that na pls send me. advance thanks … | |
I'm stuck trying to figure out how to update the text field after I click on the button in the GUI. The number of roaches is supposed to be updated each time I click, but I can't seem to find the right tool for the job in the APIs. RoachPopulation.java … | |
How to find memory leaks in java? And preventive methods advisable? | |
Hey Everyone, This is my first post. Recently, I have been working on an instant messenger program in java. I have created the networking part of the client, and I have almost finished the server side. I know the program works and I am allowed to send messages, but now … | |
Hi All, I have a new assignment which I have worked most of the way out, except I have one issue. When I sort the large text file it does not print out all the information at that moment, I have to hit enter a couple of times before all … | |
Ok am new in java programming and I am trying to conduct a simple class called Area. If anyone know anything about java you can help me. I am writing a class that has three overloaded static methods for calculating the area of the following geometric shapes. circles rectangles cylinders … | |
Can any one help me find some code to start building an OutlookPanel? | |
Hi EveryBody,I m a newComer in this Site.....Very glads to join this Site.......It will give me opportunity to solve JAVA programmings easilly.....I have a problem in Java Exceptions and Threads.....Please help me on this Topic that make me Sure...... Again Thanks to all of U as joining me............ | |
Hi, I am new in java. I have a question for which I am not getting suitable answer. My question is that why vector is called synchronised? Can anybody please clarify me why vector is synchronised? | |
So for some reason I can't seem to set the background color of a JTabbedPane. This code: [code] metaTabPane = new JTabbedPane(); metaTabPane.setOpaque(true); metaTabPane.setBackground(Color.green); [/code] does nothing. The JTabbedPane stays the same grayish-blue default color. What am I doing wrong? | |
hi i want to know how to deploy servlets on websphere community edition2 |
The End.