32,204 Topics
| |
Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the … | |
Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done? | |
Hi everyone. Hope everybody is having a fantastic day. I have a simple question and need your advice to guide me towards a solution. My question is, rather, I need help with. I'm doing the game hangman and I currently have a string that contains the secret word that is … | |
i get time field from a database table. But may i know how to convert it into 24 hour minutes and second. simpledateformat("hhmmss") is not working. Is there any other simple java method doing it? | |
hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible.. | |
Please help i have added buttons but they aren't how i want them.....how do i change the letters to squares and how i want them? and at the very bottom i am confused with what to do next thanks for anyhelp import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.JOptionPane; public … | |
[ICODE]package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … | |
My problem is I have a cache file that I'm pulling in from a seperate source. The cache contains a long string that would look something like this except much longer. myexample=1 status=0 timesHit=2500 Basically I need help figuring out how to break this up into myexample=1 status=0 timesHit=2500 The … | |
Hi, I am jahan, i just started java applets and i was trying to draw a graph. The idea i am using is based on drawLine(xmin,ymin,xmax,ymax). I wanted to get a graph for sinx which is proving to be difficult. i used following syntax to implement my idea: import java.awt.*; … | |
Hi there guys! Can someone help me with the part add tour,when I run it, its always print the same line 2 times and then when I enter the data for guide tour which should be store in the memory, but when using the display method it didn't appear like … | |
Hi there! I'm building a small application using Java and MySQL (college assignment). Everything is ok when all I'm doing are queries using SELECT. Now, when I try to INSERT anything in the table, I get this error message: java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). 0 S1009 … | |
Hello, So I was thinking of creating a PCB designing program and was wondering if anyone was familiar with the Gerber and NC file format. Anyone have any advise about how to go from a design made in Java to a Gerber File? Is it done on a pixel by … | |
Hello All, I have a chat friend online who said to me that if I don't know java or .Net then my web design will not make me money. I know how to program in php, asp html etc and willing to learn more as knowledge has no age limit. … | |
[b]hello, i want a help for you all. about mysqlprocedures and functions i am enable to create procedures and functions in mysql so that i am enable to do jdbc colleable statements programs. please help me[/b] | |
I know struts 2.0 has treenode tag. but now I using struts 1.2 and I don't want to change it. so if you can using other method to generate a java web tree,please give it to me , better include the code. thank you very much you can send your … | |
OK...here is the deal.... I am messing around with this jGRASP program... I was able to create a program that will display the squares of the numbers from 1 to 10 by using the "FOR" structure. This is what I have done and here are the results, which is what … | |
Hi friends, I have to fetch date, month & year from Calendar.For that I need a Calendar with User Interaction from which i can fetch. Is there any Calendar (builtin) in swing or i have to make it my own?.Pls let me know if u have any idea. with Thanks, … | |
When I typed the command as 'java -version' in commandprompt its showing "java version 1.3.1_01" but I want to set it to latest version of java in the path C:\Program Files\Java\jdk1.5.0_06 Due to this problem Im not able to open Eclipse, its saying "version 1.3.1_01 is not suitable for this … | |
Hello , Dear Techies.. I am j2ee developer,And my latest assignment is to implement JBI (PETALs) in our project. I worked a lot ,,,read alot ..also struggeled a lot...but codnt reach anywhere.. So now i request you experts to just give me a guide or share there experience in implementing … | |
I need to write a program with seven vectors. The program needs to have methods to input the data into vectors, display a menu to print a report and sell an item, a method to sell an item, and a method to print the report. This is what I have … | |
Hello, I am in a Java Course and my instructor said my first 2 loans the calculations are wrong. and that I need to have this in an ARRAY also. Any help would be appreciated. [code] import java.text.*; import java.io.IOException; class javamortgage //program class name { public static void main(String[] … | |
package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … | |
Hello, So my applet: image (in a Canvas object), drop down list, radio box group, and a submit button. Have 2 problems that I need to figure out: The applet is working the way it should until submit button processing, it gets parameters from web page that it's embedded in … | |
How can I open a pop window of particular size even when the javascript is disabled on the browser on my ASP page ? Solution: Here's a solution that degrades gracefully. It will open a clean popup if javascript is enabled, and a normal new browser window if javascript is … | |
I'm trying to make a PhotoAlbum using JApplets.I write a Java code for it and then compile to make a .class file and then made a html file in the same directory which have .class file.But while running it on Web -Browser it doesn't load the applet and shows that … | |
Hi All My current code is executing system commands through java programme,like “dir”,”date” itc.Whenever I run the code the desired output comes.But when I am running the code continuselly then lots of command prompt open regularlly. Is there any way to stop the code from execution untill unless the command … | |
I need to open a huge file in GBs to be precise in java. Can this be done. I need to actually break the file in 4kb chunks and compress each chunk separately . Can i do this in java. Will it create any memory out of bound error for … | |
[CODE] . . . . button1.setIcon(pic1); button1.setToolTipText("Open File"); toolBar.add(button1); button2.setIcon(pic2); button2.setToolTipText("Save File"); toolBar.add(button2); button3.setIcon(pic3); button3.setToolTipText("Help File"); toolBar.add(button3); gbc1 = new GridBagConstraints(); // c.insets = new Insets(2, 2, 2, 2);; gbc1.weighty = 1.0; gbc1.weightx = 1.0; gbc1.gridx = 0; gbc1.gridy = 0; // gbc.weightx = 30.0; // gbc.weighty = 30.0; // … | |
Hey... I present myself.. Youssef, 17 years old and i'm currently on my second year of the IB Program ... Computer IB HL i took. As some of you might know our IA = Internal Assessement is a Java Database and now mine is due wednesday... [PART I] and i … |
The End.