35,618 Topics

Member Avatar for
Member Avatar for winbatch

Hi, I have a swing app where I am using (among other things obviously) an editable JComboBox and a jButton. when the JButton is clicked, it does some processing and uses the value in the JComboBox as one of it's inputs. I'm finding that everything is fine when: - The …

Member Avatar for winbatch
0
202
Member Avatar for scunnywhite

[code]/*Imports Java library files*/ import javax.swing.JOptionPane; import java.text.*; /*Filename for programs class*/ class KwikKapers { /*Runs program- method*/ public static void main(String[] args) { KwikKapers optpane = new KwikKapers(); } /*Constructor*/ public KwikKapers() { /*Instruction to begin start menu method*/ Startmenu(); } /*Method for main start menu*/ public void Startmenu() …

Member Avatar for Ezzaral
0
85
Member Avatar for neknek

We were asked to create an applet in which it will get the current date, then the user will input a number (n), when the user presses 'ok', the date+n after will display. Here is my code so far [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Calendar; import …

Member Avatar for neknek
0
95
Member Avatar for texantrail

HI I need some help on how to go about in java program to design a Strict two phase locking schema. where the input file is given as notepad and input as follows through a notepad as follows b1; r1(Y); w1(Y); r1(Z); b2; r2(Y); b3; r3(Z); w1(Z); e1; w3(Z); e3; …

Member Avatar for texantrail
0
820
Member Avatar for ninaijanai

[CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.JOptionPane; import java.net.*; public class User extends Applet implements ActionListener {Label lblUser = new Label("Username:"); Label lblPass = new Label("Password:"); TextField fieldUser = new TextField("",10); TextField fieldPass = new TextField("",10); Button btnOk = new Button("OK"); URL order; public void init() {add(lblUser); …

0
54
Member Avatar for tactfulsaint

hello everyone I still need code snippet help with authentication of username and password on both java and web application..

Member Avatar for ~s.o.s~
0
569
Member Avatar for dav555

I would like to make two JList's with DnD from one to the other and in it self. I created a TransferHandler like this one in the java tutorials: [URL="http://java.sun.com/docs/books/tutorial/uiswing/dnd/dropmodedemo.html"]Tutorial-Page[/URL] Now I can drag and drop from one to the other. I works also if I move one list element …

0
64
Member Avatar for mdew_47

i have been given a 2-phase compiler containig the lexical phase and the syntax phase as my final year project. for that i need to know how to call a C program from a Java applet using a button called "compile". A little help will make me thankful.

Member Avatar for mdew_47
0
203
Member Avatar for Dancealot

Hi all. I have a problem when I am trying to run an application on my mobile. The app compiles on netbeans, but when I copies it to my mobile telephone, it sais: java.lang.NoClassDefFoundError. I have been told that I should have references to everything and that i might need …

Member Avatar for Dancealot
0
178
Member Avatar for gaurav_chhabra

[B][/B]Hi, I am using cruise control on Windows XP. We have CVS as our version control tool. I am using the following four files to achieve build of my code. 1. config.xml (This file is present in cruise control directory and it calls up the file 'tc-build.xml'.) 2. tc-build.xml (This …

0
62
Member Avatar for twgood

So far it looks pretty good, except in the GUI I can not get the Modify, Save, Delete, Add and Search buttons to work. They produce error codes : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javaapplication54.ModifyButtonHandler.actionPerformed(Inventory6.java:488) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) …

Member Avatar for darkagn
0
99
Member Avatar for adityam4444

We have got a good way to upload a file in struts framework, using enctype="multipart/form-data" and using tag html:file. But in one of my applications I need to use a PNG image for the functionality of html:file. The reason is, I cannot make the textbox of html:file readonly. The user …

0
59
Member Avatar for twgood

In part of my coding I know have this... throw new UnsupportedOperationException("Not yet implemented"); what does that mean, and what do I do with it?

Member Avatar for Ezzaral
0
71
Member Avatar for teh noobshow

ok heres what im currently doing... [/code/] (autocast)) == (15348) { cast manual with spell 1155; spell cast starts at position X Y; } } } } } itemID)) == 15348 { } return 406; { Case 1505: UsingMage) = true; else if (ItemID == 15348) [13] > 70 caster …

Member Avatar for Ezzaral
0
146
Member Avatar for sciwizeh

i want to make a code template in netbeans with the abbreviation of cn that will expand into the name of the current class being worked on, is there a way to do this? i cannot find anything about it. google won't turn up any good info

Member Avatar for sciwizeh
0
95
Member Avatar for Naween

I've soome buttons in my coding. It has some values. I want to add those val & display in a text box. When u press a button the amt has to be calculated. I tried bt it's not working.How can I do this? I need quick reply. This is my …

Member Avatar for Ezzaral
-1
86
Member Avatar for witza

:$ Ok people, bare with me for a second (or 60...) I'm developing a part of a larger application, and to cut to the chase, i now need to access an Hashtable that I've made global. This aplication is multithreaded, but I'm trying to access this hashtable from the same …

Member Avatar for nnobakht
0
182
Member Avatar for vath88

Hi all, Can any please explain me how to call methods of one bean through other bean in JSP. for example in user registration,ihave used two beans one is "Userinfo " with all setters and getters and other "Userregister" interacting with database which has a method called doInsert(). now how …

0
60
Member Avatar for Naween

In my java code I get this error. Enyone fix it for me Plz? cannot find symbol `:method getSelectedItem()` This is my code. import java.awt.*; import java.awt.event.*; import java.applet.*; public class soda extends Applet implements ActionListener, ItemListener { Label lblhead,lblfoot,lblsize,lbltype,lblamt,lblbal,lblavilability; Button b1,b2,b3,b4,b5,b6,b7,btnref; Choice choice1; Checkbox ch1,ch2,ch3,ch4,ch5; float num,money,change; CheckboxGroup cbg,cbg1; …

Member Avatar for sciwizeh
0
104
Member Avatar for rapperhuj

hi sir, im a newbie in Java programming.. can u give me some tips or source.. that can read a file.. throughly and write to the file.. that can add more information to the .dat file when it adds or save more info to the existing file.. thanks a lot …

Member Avatar for peter_budo
0
101
Member Avatar for mystery_love123

Hi All, I want to make a SQL parser in Java which will give the names of view ,column names in select clause,and table names in 3 different arrays. This is the SQL Query which is there in text file. create view NAME1 as select a.col1 as alpha, b.col2 as …

0
58
Member Avatar for g_loughnan

Hi Lads, I'm trying to read from one spreadsheet, extract the contents of certain cells, and write them into a new spreadsheet. I've read from one spreadsheet fine, but when I try to write to a new spreadsheet, the output file is empty and I can't see why. Can anyone …

0
72
Member Avatar for love_dude1984

hi every1.. im just starting with JSP..i run the jsp pages on a single machine using localhost:8080/examples/jsp/my pages...but what if i want to store my pages into some other directory n wish to access them then how can i do tht??is there any file wher ive to change the path …

Member Avatar for peter_budo
0
118
Member Avatar for hny_lyn

hello to all!!! i really don't have any problem this time, but there's something i wanna learn more about! we are discussing classes and inheritance now!! my professor have given us quite examples of it....but it wasn't that clear!! can i ask for a simple codes that implements a class …

Member Avatar for javaAddict
0
194
Member Avatar for oali

hi everyone i really need help with my problem, i have created a full online tutorial using applets however one of my html pages containing this particular applet will not show the applet when viewed in any broswer. The applet contains an image and without the image the browser shows …

Member Avatar for madhavipoudala
0
99
Member Avatar for ocreds

I'm new in java programming but somehow I understand little especially basic because I have a background in Vb6 I find it difficult because it has lot of java keyword that I dont understand. Now, I need your help to defend this program in our class. Help me please. If …

Member Avatar for javaAddict
0
218
Member Avatar for dav555

I have a file containing different tags and datas like: VERSION: 1.1.1 NAME: xxx VALUE: 1.5 START_IMAGE ‰PNG.... END_IMAGE i can't change this file....it is not mine... But i need to read the png image between the START_IMAGE and END_IMAGE tags. I don't know the length of the image-data. How …

Member Avatar for dav555
0
106
Member Avatar for Naween

Does java has toString function? eg : txtamt.setText(toString(num)); But it doesn't work. Plz give me the right method.

Member Avatar for Miyuki Suzuki
0
78
Member Avatar for jorgeflorencio

[QUOTE]Hello everyone I have the code that allows me to colect values acording if its Fail or Passed[/QUOTE] [CODE]package spimonitoring; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.lang.reflect.Array; public class InspectionResults44{ public static final byte HEIGHT_AVG_RESULT = 6, HEIGHT_RANGE_RESULT = 11, AREA_AVG_RESULT = 16, AREA_RANGE_RESULT = 22, VOLUME_AVG_RESULT = 29, …

0
128
Member Avatar for HLA91

Hi all I copied the source code for a simple text editor from [URL="http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html"]http://www.leepoint.net/notes-java/examples/components/editor/nutpad.html[/URL] I tried to modify it slightly by adding a help column to the menu bar so you would click Help> then a drop down list would appear with About and you click that and a frame …

Member Avatar for HLA91
0
164

The End.