32,199 Topics
| |
Hi! I just had a quick question that I can't seem to find the answer to anywhere. My book isn't helping me much and I have no one to turn to for help. Anyways, here's my question: I want to make it so that when you click a Button in … | |
i am trying to create website where i have to upload the images.. i am storing the context name in the database.. after uploading the image, the image is copied to specified folder but when trying to display it. the old image is not changing to newly uploaded image..... | |
he i made a simple reservation system please help me with code on how i can cancel a reservation [code=java] import java.util.Scanner; import java.util.Date; public class reservation { // Create an array of 12 seats, 6 window and 6 aisle. private static int[] seats = new int[12]; public static void … | |
Hi all, Here is the structure of my XML file. [CODE]<?xml version="1.0"?> <data> <key>468</key> <name>pal</name> <option>10</option> </data>[/CODE] I want to read the option tag value, then increment it by 4 and write it to the same location. So at the end XML file content like this. [CODE]<?xml version="1.0"?> <data> <key>468</key> … | |
Hi I'm doing a project in java.It is the game othello.It was all going well till i got an [B]ArrayOutOfBoundsException[/B]. the array is this buttons[9][9]; If you dont know othello it's a board game with an 8x8 board. The Exact error is "ArrayOutOfBoundsException: 9" and give the lines which the … | |
Hey, I've recently started to learn Java with a little prior experince in C++. Only the basics. I was just wondering if there any pointers for getting this language down. I'm talking about stuff that I won't pick up from some book or exercise. Something you've all come across in … | |
Hello everybody! I am a beginner in Java and need some help plz How could i build a structure trie from a matrix Thx | |
Hi I know its a bit odd but i am freshly new to java and in a real need to solve few progs by EOD . Really stressed ..please help me out in solving below progs ... ************************** Task 1 Write a visitor for a structure of Strings (i.e. one … | |
I am in the middle of a program and have a quick question and not sure how i do this... "have the Frame display in the center of the monitor " [code=java] //import packages import java.awt.*; import java.awt.event.*; import java.awt.datatransfer.*; import java.text.DecimalFormat; import javax.swing.JOptionPane; //create a subclass at the fram … | |
I am using java.util.map to store some data ( one key and two values , per row ) in java and return it to a python function . What kind of a data structre should I use in python to catch it? (btw I am using Jython as a bridge … | |
i need 6th version java tutorial immaculate | |
i need to display the contents of a database(table) MS access db, on to the screen. how do i got abt it??? the data keeps changing dynamically...the program should be able to refresh it self | |
Hi, I am kiran I have a task like If I click one option box like country then corresponding states to appear,than I click states than next option box must display cities.please see this link you will get an idea [url]http://www.bharatbloodbank.com/search.php[/url] How to do it in struts. If I want … | |
:?: Hi: I am postin in this forum because someone told me all the windows applications were developed in visual basic. I need to know which is the DLL associated with the sound recorder. I nedd to use the record method to call it from a java application. I hope … | |
following masijade advice i tried busting my head abit. i have written the following code import java.awt.event.*; import java.awt.*; import javax.swing.*; import javax.swing.border.*; public class Game extends JApplet implements ActionListener { //Creating a new JPanel called panel1 JPanel panel1 = new JPanel(); //Creating a JLabel for panel1 JLabel header = … | |
Hi, I am working on a sort of stack calculator. If anyone can suggest a better method please advice: Basically, using the stringtokenizer to break the string into tokens. If the token does not equal "add" or "sub" or if the token is a digit push it onto the stack... … | |
this is the output on server init: deps-jar: compile-single: run-single: checking the client of ip 169.254.86.65 checking the client at port 59000 checking the client at hostname RAF System with169.254.86.65is online probing the client of ip 169.254.86.65 creating the client of ip 169.254.86.65 whose hostname is RAF at port 59000 … | |
I'm able to set UIManager for UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel") and UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel") but for UIManager.setLookAndFeel("com.sun.java.swing.plaf.metal.MetalLookAndFeel") I get an error like this : java.lang.ClassNotFoundException: com.sun.java.swing.plaf.metal.MetalLookAndFeel What's wrong with my code ?? Thanks, Kusno. | |
im having problems with my java homework. I really need help. I need to use a loop make sure what the user input for their grade is vaild the grade has to be between 150 and 0. So can somebody show me the code to use import java.util.Scanner; // Needed … | |
to anyone who can help me out with this its of no big importance i was stumbling one day and this came across this little snit bit of what looks to be like a program or something so i tried starting it and i have no idea whats going on … | |
hi, i am new to java... i need to start two programs in a server just after user clicks a button in the jform. for this i may require multi threading.. can any one plz give me a small example or a link where i can see threads created, each … | |
I need help with this coding because I am having trouble with a lab of my class. I am up for any hints/tips and techniques... and code if desired. Well I am hoping that someone will respond and thanks. | |
> Using a Binary Search Tree > Using the LinkedBinarySearchTree class in the jss2 for chapters 12 and 13, write a program that exercises all of the operations except: > removAllOccurrences > findAgain > replacement > Details > Your program will read instruction from the file: numbers.txt > The file … | |
Hey I am a newbie in java and I was wondering if someone can help me. Where would I place [QUOTE]int [] qDifference = new int [3]; for(int i = 0; i < 3; i++) { qDifference[i] = q[i + 1] - q[i]; }[/QUOTE] in the code below to show … | |
Hi, I get the following exception when i try to run the following code segment. [code=JAVA] stmt = (Statement) conn.createStatement(); rs = stmt.executeQuery( "SHOW TABLES"); if(rs.first()) { stmt.execute( "DROP TABLE " + rs.getString(1)); while (rs.next()){ stmt.execute( "DROP TABLE " + rs.getString(1)); } } [/code] And the exception i get is: … | |
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; /** * * @author 007 */ import java.io.*; import java.sql.*; import java.util.*; import java.util.Random.*; import java.net.*; import java.lang.String.*; import java.io.InputStream; import java.lang.Object.*; import java.net.ServerSocket.*; public class aptserver implements Runnable{ … | |
I am using [B]Java Wrapper Service API[/B] to launch my application as service. i have been already installed my application as for Linux and Widnow os. but i have no proper idea for mac os if some body have and idea then please Replay me. | |
Here i need to write this code for class and i am getting the missing return statement error. Heres my code : import java.util.Scanner; import java.text.DecimalFormat; public class derived extends Foreign { Scanner keyboard = new Scanner(System.in); private String date; public void vertDisplay() { super.vertDisplay(); System.out.println("Date = " + date); … | |
Hello everybody I am doing a project on PDA PalmOSo and am using SuperWaba to develop the application however, since I am not more familiar with this tool I need help. So please any who has a experience on this tool help me on the following questions. My question is … | |
| Hi i want to read words form a text file placed in the same folder as the java file and then hold the information in an array. so far ive written code to read the text file (i think) im trying to teach my self so if ive done this … |
The End.