32,204 Topics
| |
Hi, wich software do i need to download to start programming in java ? | |
Hey there :) :) :) I'm doing a "simulation" project for the first-come, first-served (FCFS) CPU scheduling algorithm. To give u an idea of what this is: CPU Scheduling is all about having a Scheduler determine which process should be allocated to the CPU next. It has many various algorithms … | |
Hey I'm using jgrasp and the objective is to get the robot out of a maze and I have done just that but after the robot makes it out of the maze I need to have it print out how many spaces it has moved in each direction such as … | |
[code]import java.awt.*; import javax.swing; public class ATMko extends JFrame { JPanel p1; JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14; JTextField t1; Container c= getContentPane(); public ATMko() { t1=new JTextField(" ",100); b1=new JButton("1"); b1.setBackground(Color.GRAY); b1.setForeground(Color.BLACK); b2=new JButton("2"); b2.setBackground(Color.GRAY); b2.setForeground(Color.BLACK); b3=new JButton("3"); b3.setBackground(Color.GRAY); b3.setForeground(Color.BLACK); b4=new JButton("4"); b4.setBackground(Color.GRAY); b4.setForeground(Color.BLACK); b5=new JButton("5"); b5.setBackground(Color.GRAY); b5.setForeground(Color.BLACK); b6=new JButton("6"); b6.setBackground(Color.GRAY); b6.setForeground(Color.BLACK); b7=new … | |
Hi all, which drivers should i download for the com.internetcds.jdbc.tds.Driver I cant seem to see a jar with this class. Does anyone know where i can get it from. Thanks | |
I'm having difficulty of inserting a value into a column. When I enter a "ID" number and a value in the "last name" text field, I get an error saying that the "mi" text field can't be an zero length string. So, i enter a value in the "mi" text … | |
Somebody pls help i want the code.... | |
Hi everyone, I have small Problem. I have to take input as a string say blue,green,red, etc split this into blue green red respectively separately and then add those into an ArrayList Clr. I have written System.out.println(" Enter Color "); String input = br.readLine(); ArrayList clr = new ArrayList(); String … | |
Im having a brain block and I have no clue what to do next. Im not asking for someone to write code for me, im asking for someone to give me an idea or suggestion so I know what to write next. Im pretty confused. Below are my classes related … | |
Below are the instructions for what I am currently working on. I am having 2 problems first is printing the values stored in my array right now i have it set up in a for loop but there seems to be something wrong with the syntax of my System.out statement … | |
Hi all, I have implemented some code for simple columnar encryption. The algorithm is encrypting properly as I want. But during decryption it's giving me some errors. Please go through and suggest me if any idea [code] public static void encrypt(RandomAccessFile f,RandomAccessFile d,int columns) throws Exception { d.seek(10); // SEEK … | |
<p> pls help me make a [COLOR="red"]calculator[/COLOR] code/s uning jframe form :) </p> | |
Hi, I am getting an error message as follows: java.lang.NoClassDefFoundError: inventorypart1/Beverages Caused by: java.lang.ClassNotFoundException: inventorypart1.Beverages I have been running programs with no problem and with this message I am confused. I cannot see what I am doing wrong but I think I have been looking at it too long. Any … | |
Hello, I'm trying to create an application that when you click on a button, it just displays a string but it doesnt work. Here's the code: [code] import java.io.*; import java.awt.*; import java.applet.Applet; import java.awt.Graphics; import java.awt.event.*; public class main extends Applet { TextField input; Button convert; public void init … | |
I'm trying to write a code that validates that an integer is between 1 and 9. Then it prints out that integer as a word. User inputs 0 to exit program. Example: [I]Enter an integer between 1 and 9 5 Integer entered, five Enter an integer between 1 and 9 … | |
Hello, I've been looking at this problem for a few hours, and I can't figure it out. We had to test this code and fix it if we find errors (it's a splay tree): [CODE] public class SplayBST { Node root; int count; int level = 0; public SplayBST() { … | |
If I want to compare C, D, and E how do I do that with an equals method? [CODE] public class Fraction { /** * @param args */ public static void main(String[] args) { { Fraction c, d, e; c = new Fraction(5, 8); d = new Fraction(1, 2); e … | |
here is a program code i want to create an application that create frame and write the string on it and when i click the close tab of frame it will close the frame please help me...its very urgent.. [code]import java.awt.event.*; class SampleFrame { SampleFrame(String title) { super(title); MyWindowAdapter adapter … | |
Hi all, I'm wondering if someone can help me. I am trying to write a basic program which involves a square moving across a JPanel in a random direction, and the user needs to click on the square to get a point. Now I have everything up and running but … | |
I have this code which displays the letters of the alphabet. I am trying to get the JOptionPane to display the first six letters of the alphabet However when I try and just display the 6 letters, it displays all of the alphabet letters first, which is not what I … | |
hi sir i am doing the project in which i read tiff file and take two images from that file and create another tiff file i am able to take one image from the tiff file and create another tiff file my problem is that i am not able to … | |
i want to implement client server communication through wirless network in java,by using Socket,ServerSocket classes can i connect two computers with wireless connection??? | |
Hey guys! I have a school project and I cant figure out the coding to make it work correctly. This is what I am supposed to do: Write a class with a main() method and two static methods. Your program should prompt the user for an integer that is no … | |
Can anybody help me with java code to monitor system power,that is to check if a machine is running on battery or on ac power | |
Write a java based program to accept numbers from the user and also sum the list of numbers as and when entered. apply the data conversion mehods , if required. implement the best and the shortest way to complete the task. | |
Hi, I am new to mysql and have got a problem. I have managed to INSERT into the database and and check from it (a simple login system) but now after i login i want to copy all the data from that row and throw it into an arraylist. I … | |
Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char … | |
Hello I would like to implement multiple swing timers, each of which have a different function, but I cannot seem to separate the functions. I have one actionlistener and I cannot make another one. Please help. | |
Hai Friends, I doknow hoe to create new Registry key in java, For Example HKEY_LOCAL_MACHINE\Software\Company\Productname\version i searched through google, i got only by using third party jars,i want to do with out third party tools, please help me in this problem. |
The End.