Applet question

1485 byte By Kohinoor24 at 2007-11-20 9:14:40
Hi all,Iam developing an applet in which ,I have overrided the init,start,stop & destroy methods.Iam using the j2sDK 1.4.In the "init" method,I want to create and show the GUI.(That means dont want to load any data into the controls in the GUI).Have a method createAndShowGui()-->which does that &...

Help regd AWT through JDBC

298 byte By supan at 2007-11-20 9:14:47
Hello !! <br/>I am new to java. Kindly help me in -<br/>I want to retrieve one record at a time through JDBC MS Access Database<br/>and display into AWT textbox . With help of Next button it should display next set of record. <br/>How to write the code? Please help me<br/>supan

super() in ctor

270 byte By Martin O at 2007-11-20 9:15:06
Is it ever necesarry to put super() (with no arguments) in a constructor? Am I correct in the assumption that the only time you'd need to call super in a constructor is if you need to call a version of the superclass constructor that has arguments?<br/>Thanks.

CompareTo questions

212 byte By stargup at 2007-11-20 9:15:55
I am trying to create a compareTo and i am having trouble. I just want to be able to compare the names ans sort them accordingly. Does anyone see any mistakes, i keep getting an error "invalid method declaration"

JSP Code is getting displayed when we run the JSP

430 byte By nmsudhanan75 at 2007-11-20 9:16:11
I'm having a simple JSP program which just prints <% out.println("Hello World");But i'm not getting the message Hello World when i run the jsp program. Is there any problem in server setting of mouting the jar files.In some cases, whole code is getting displayed instead of form fields.I...

[RESOLVED] Need Help with Sorting (implementing Comparable)

1448 byte By slowcoder at 2007-11-20 9:17:09
I want to be able to sort an array within the function: sort_horiz. However, I'm not too familiar with implementing Comparable so I have a 2 errors that I need help with. Your suggestions are much appreciated. Here's my code:private static int horiz_list;private static e_list_entry[] e...

POST form data with java

555 byte By sjdavis at 2007-11-20 9:17:17
Hi,I am trying to traverse product pages at Vons.com, which has a page that pops up whenever you try to make a product search that requires you to enter your zipcode or register with the site before you can start browsing.I have read several tutorials on POSTing form data using Java, and it appears...

Code help :) Array

1218 byte By Pez at 2007-11-20 9:17:51
ok basically i got some help from dlorde for my code.. and to test wether one of my string holds its value properly .. i am using out.print.. and well basically its not working .. when i run it ... it says Server :then i type 1 for the first server that is in the string .. and it should show the sel...

Anyone up for a new java project!?!?

339 byte By Holdom at 2007-11-20 9:18:02
Hello hope someone will be interested in doing this,I am from a fairly big site with around 14,000 members, the site is based on a game called runescape.What this site needs is a jave scriptable "bot".If your interested and want to know more details add me on msn at: Holdom2007@autoscape.orgok thank...

simple text based java help

1313 byte By billyb0b at 2007-11-20 9:18:15
Hello. I am having trouble getting a simple text based java program to run correctly. It compiles fine but when I run it and enter the employee name that it prompt for, it returns an error and crashes.i am assuming this is because it is trying to fill the employeeName variable with a string of tex...

class/object use questions (newbie stuff)

1125 byte By ateo at 2007-11-20 9:18:20
Please view my next message in this thread. This post is resolved.I have a project for a course that requires me to use a class and object.Instructions are:For this project, you will implement a Gifts object that will keep track of the total amount given. Pseudocode for this object is given below:G...

Multiple Read/write issue...

5060 byte By viggu at 2007-11-20 9:19:04
Hello All,The Server program that i wrote selects the image from the disk one at a time and sends it to the client on Clicking NEXT button.On the Client side i just read the file and using image.io i display them to the user. The user in the client side does not click any button other than the conne...

Java - scalibility on distributing large number of alarm data

263 byte By rasiva007 at 2007-11-20 9:19:18
Hi,<br/>I need to get large number of data from Network element and ditruibute the same. I am confusition on using framework for this development. LIke EJB or Spring or hybernate.<br/>Can any one suggest and how itwill be useful?<br/>Thanks,<br/>SI

Hide / unhide DropDownList in DateTime Picker

10209 byte By forumaic at 2007-11-20 9:19:42
I am writing an ASP.NET application and using javascript DateTime Picker code (I have found it on the Internet):<script type="text/javascript">// <!-- <![CDATA[ // Code begin...// Set the initial date.var ds_i_date = new Date();ds_c_month = ds_i_date.getMonth() + 1;ds_c_year = ds_i_date....

Comparing Two Strings - Capitals Help

548 byte By Kai Dao at 2007-11-20 9:19:57
Hey guys, I'm writing this stupid little program to store a name, and then check if that name is equal to the right name. I stored the right name in a string literal, and asked for the user input into another string. When I compare the two strings, let's say the right name is Kai. When I d...

Layout problem

3757 byte By zhshqzyc at 2007-11-20 9:20:25
Hi, I want to plot a 3d and two combox, but only combox displayed.Why my drawing no appearence?Thanks, this is an executable code. import java.io.*;import java.awt.Font;import java.awt.Color;import java.awt.Graphics;import java.awt.geom.*;import java.awt.*;import java.awt.BorderLayout;import javax.s...

BCEL, ByteCode Engineering Library

631 byte By Pez at 2007-11-20 9:20:32
Okay .. i really need some help with BCEL. I am new to java .. but have picked things up pretty quickly .. i need to know how to hook my BCEL coding into my applet class files, this might sound simple .. but its kinda left me stumped .. any help over msn would be much appreciated since its kinda com...

serial connection

879 byte By musiigedeo at 2007-11-20 9:21:18
hey dev-archivesI have developed an application in java that can read and write from the serial port. And it works perfect when i start it in jbuilder. Meanwhile if i run the jar file containing this application, the frame is displayed but the application can not read or write to the serial port. W...

.do file

176 byte By dummyagain at 2007-11-20 9:21:21
I saw a file in the URL that with .do extension. However, when i look for it in the web server.. i cannot locate this file...can anyone tell me how to trace it?<br/>Thanks

jnlp file

1019 byte By musiigedeo at 2007-11-20 9:21:23
Hey I have the jnlp file below, when i double click on it nothing happens. what am I missing?<?xml version="1.0" encoding="utf-8"?><!-- JNLP File for Deo's tera term --><jnlp spec="1.0+" codebase="file:///C:\Egen_fil\JBuilder\jaajaajaa" href="Deo_apps.jnlp"> <i...

Gui

1744 byte By musiigedeo at 2007-11-20 9:21:29
Hey guysI have the method below that reads from the serial port when ever there is a serial port event. I also have another method that just writes to the serial port. In the code below, the 2 lines System.out.print(data) and parent.setData(data) marked by +++++ and *****, System.out.print(data) pr...

thread

1112 byte By musiigedeo at 2007-11-20 9:21:52
My problem is to have the two class below to run in 2 parallel threads. I have been advised to use a work thread but its some hard stuff for a java beginner like me. Plze can I get a hand?class 1public class ttteer{ private SimpleRead; public ttteer(){ Read = new SimpleRead(this);}public void setDat...

Required database connection error

1169 byte By CampbellsSoup at 2007-11-20 9:22:09
Hello,I am currently trying to build a connection between some Java program and an Access database. Here is the code I am using for this:import java.sql.*;public class Connection { private static Connection getConnection() { Connection con = null; try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriv...

Java newbe needs help

12118 byte By Nfnfnf at 2007-11-20 9:22:19
Hey peeps,I'm fairly new to programming, and only started with Java for the first time today. I'm trying to make a web applet that allows you to fill in some names in textfields, after which it randomly chooses a few of them. (It's for a game regarding the DeathNote anime, just in cas...

how to resize different columns with different size

157 byte By martin1 at 2007-11-20 9:22:26
hi all,<br/>i am using jtable my problem is that i wans to make all the columns different size how can i do that plz sujjest me .<br/>Thanks in advance.

jtable sorting

2430 byte By mansi_3001 at 2007-11-20 9:22:50
public class MyTableApp extends JFrame {JTable myTable;JButton update;JButton insert;JButton delete;JPanel p,mainPanel;MyTabModel tm;DefaultTableModel tabModel;JScrollPane myPane;Vector rows,columns;protected JLabel titleLabel=new JLabel("Click table header to sort the column");//constructorMyTableA...

selections problem

990 byte By Daniel Lee at 2007-11-20 9:23:03
Hi I am having problems with something like this. I will paste out the dry run.Main Menu1.Order submenu2.Admin submenu3.QuitIf you choose 1 you get Order submenu1.xxxx2.xxxx3. Return to Main MenuIf you choose 2 you get roughly the same thing, you choose 3 you can exit the program.Now what I have so...

debugging javascript code

210 byte By ahmad_n80 at 2007-11-20 9:23:05
how can i debugging java script code in visual studio.<br/>and is there any way to send parametr from asp.net to javascript function.<br/>example: i want to send parametr (i) from c# code to javascript function

how to run multiple instance of the same applet on diffenrent machine

270 byte By martin1 at 2007-11-20 9:23:57
hi all,<br/>i am making a applet application .The same applet has to be opened at the same time at different client and the changes in the information upon the applet page must be reflected at all the clients how can i do that plz sujjest me.<br/>Thanks in advance.

how to disable row of a jtable

281 byte By martin1 at 2007-11-20 9:24:22
hi,<br/>i am making an application in which i have jtable what i wants to do is that i am selecting row and inserting the values of this row into another jtable now what i wanst is to disable the already selected row so that i can not be selected again.<br/>Thanks in advance.

jspc suprressing html comments

419 byte By hameem at 2007-11-20 9:25:17
I have noted jspc (jsp precompiler) is suppressing all html comments while precompiling jsps. In my case I have written some browser specific html annotation code in comments. But since the jspc is suppressing all html comments I found my code not working as expected. The same code is working fine...

BTree problem

478 byte By sara_roy at 2007-11-20 9:25:53
Hi all,I am having problems in creating a BT from its preorder and inorder transversal's. I understand the theory but i am having problems in coding it could some one please help me on this one.For example if i have:pre = 124536inorder = 425163Then first i will pick my root as 1 from pre and th...

help with while loop

1751 byte By billyb0b at 2007-11-20 9:26:42
My code compiles fine, but when it runs the while loop it returns back to the system.out.print line that reads "employee rate" instead of the system.out.print line above it that i want it to display ("employee name").i can't figure out what's wrong with it.... any advice??import java.util....

JTree with Checkboxes

813 byte By Mjdgard at 2007-11-20 9:26:48
Hello,I would like to have a Jtree with multiple check boxes for each leave.I read about how to add a checkbox to a Jtree but I could not find information about how to add several check boxes.If possible, it should look in the following way.root | -- NodeA | --- Leve1 [] [...

Doing SCJP

197 byte By james3302 at 2007-11-20 9:26:49
Bought SCJP Sun Certified Programmer for Java 5 Study Guide (Exam 310-055) tonight. If anyone else is going for this cert I would like to work in a group or as a team to share ideas and solutions.

Help with a small testing program (Simple problem?)

718 byte By Kai Dao at 2007-11-20 9:26:54
Hey guys, I'm writing this small program that takes a four digit number from input (let's say it's 1347, for now) and then tests if the last digit is equal to the remainder of the sum of the first three digits divided by seven. So, for 1347, it would be 1 + 3 + 4 = 8, then divide by 7...

SCJD Reuquirement

189 byte By anandedward at 2007-11-20 9:27:03
hi <br/>i m succesfuly finish SCJP exam next i m going to write SCJD any one to help SCJD books. if u have SCJD book pls send the downloading url<br/>Thank u<br/>by<br/>Anand

Console text animation

474 byte By Xeel at 2007-11-20 9:27:20
Hi :). I'm sure I just don't know the right name for the thing, otherwise I'd find it easily in the web, since my little problem is a VERY old one, solved before the times I was able to walk under the table.What is the most rational way to create a console text "animation" through Sys...

finding an element in an array

182 byte By lontana at 2007-11-20 9:27:35
Dear all,<br/>I have set of the integer pairs. I want to ascertain if certian pair is present in the set. Isd there already anything available that solves this problem?<br/>Thank you

showSaveDialog trouble

1297 byte By terbine9287 at 2007-11-20 9:28:04
Hey,I have been troubleshooting this problem for quite some time now and can't seem to figure out what is wrong. Whenever I go to the file menu and select Save As, this showSaveDialog appears and allows me to navigate through everything to find a place to save the file. The problem is that it d...

static void sort(type[] a) method?

1695 byte By redgto4u at 2007-11-20 9:28:12
I am trying to figure out how to implement the " static void sort(type[] a);" method into a program I am making. My book has no examples of how to use it! All it has is what it is used for. At the end of my application I want to ask the user to sort the array by price or time. How would I use this m...

How to extract information from a DOM object without specifying the TAG Name

429 byte By mskamal at 2007-11-20 9:28:57
I try to retrive information from a DOM object without specifying the Tag element name that is method getElementsByTagName("ENO"); because this way of retriving information is like a static maner that means if you know the tag element name then you can retrive tag value , but if dom is a tree like o...

Validating a edifact file

116 byte By nahid286 at 2007-11-20 9:29:00
Hay is there any one can help me with surce code for validating a edifact file?<br/>edi(electronic data interchange)

Java Thread Looping question

1871 byte By ZenBlender at 2007-11-20 9:29:12
I am trying to create a threaded buffer for network communication. The idea is that the thread can send data (when available), independent of other threads in the project. I can't seem to figure out how to avoid doing a "busy" wait, or to trigger the sending whenever I want. For example, her...

Making Java Video Games

18 byte By WesTurrant at 2007-11-20 9:29:27
Moved to C# board.

how to get the positions of an element ?

374 byte By lmsaga at 2007-11-20 9:29:52
for example, I have an expression (a b (e (a b) c f) d)positions of element "e" is (3,1): means the 1st element of the 3rd elementpositions of element "a" is (1) and (3,2,1)positions of element "(a b)" is (3,2)I've tried to construct this data structure, but did not work. so, please help me if...

keyDown delay

453 byte By BlackDragon777 at 2007-11-20 9:29:58
Hi. I am making an applet side scroller game. I am using the keyDown event to detect key presses. However there is always a slight delay before the player moves because the applet is not reading directly from the keyboard as does Direct Input for DirectX. When then player presses the left arrow,...

Evaluating Expression

337 byte By haifriends at 2007-11-20 9:30:28
Hi,I want to evaluate expression in Java. We were using "Janino" for Evaluating Expression. When I give the expression as ((a>10) && (a<20)), it is giving error as "Redefinition of formal parameter "a" "Is there any other jar file for evaluating any expressions.Thanks in Advance-haifriends....

Java web server log file

429 byte By jnekoonam at 2007-11-20 9:30:40
Hi,I was wondering if anyone can show me a simple log file recorder for a simple java web server.The log file should simply show the ip address of the client (which is reported from the client's browser) and the page that the client requested, date and time of the request. By calling this log f...

writing to a non empty file

493 byte By dukes at 2007-11-20 9:31:12
Hi im having some frustrating problems with writing to a file. what im trying to do is write some formatted data to a file then do some calculations before adding more data to the file. the calculations are not small so its not the best idea to keep the file open in the background like the way Rando...