35,586 Topics

Member Avatar for
Member Avatar for javeria3

The problem is Design a class named Person with fields for holding a person's name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods. Next design a class named Customer, that extends the Person class. The Customer class should have a field for …

Member Avatar for jon.kiparsky
0
3K
Member Avatar for bejums

Hello I'm having trouble extending JPanel. I know how to extend JFrame but my assignment calls for JPanel. Here is what I have: [CODE]import java.awt.Color; import java.awt.FlowLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; public class Guess extends JPanel { private …

Member Avatar for bejums
0
3K
Member Avatar for Slyvr

I'm trying to organize my frame so that I have two panels, one on the left and one on the right, sort of like a website design with buttons on the right and empty text area on the left. How in the hell is this accomplished? I've been screwing around …

Member Avatar for Ezzaral
0
84
Member Avatar for ashu12v

Hi.... I have made this code for my college project but don't understand why i am getting some errors like 2 Error : java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state (This error occured while checking availability of seats...) Also the Report section of project is not showing anything can anybody …

0
45
Member Avatar for spades0001

Hey guys! So, I created this form, but I can't seem to add color to it. I'm trying to make it color red. I've been trying to change the color for 2 days cuz I'm a noob :) Thanks guys! Here's code by the way: [code] import java.awt.*; import java.awt.event.*; …

Member Avatar for masijade
0
291
Member Avatar for alvalany

Hi friends, I am doing Bachelor's Course In Computer Science Engineering. Recently I recently completed my course on Application Development and Database Management. Coincidentally a few days ago I was asked by my friend to do a simple software for managing his store. So, i thought I got an opportunity …

Member Avatar for JamesCherrill
0
95
Member Avatar for alvalany

Hi friends, I am doing Bachelor's Course In Computer Science Engineering. Recently I recently completed my course on Application Development and Database Management. Coincidentally a few days ago I was asked by my friend to do a simple software for managing his store. So, i thought I got an opportunity …

Member Avatar for alvalany
0
130
Member Avatar for hanvyj

Ok, im gonna go ahead and just paste most of the stack trace in, (its massive) : java.io.NotSerializableException: com.sun.java.swing.plaf.windows.XPStyle at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at javax.swing.JComponent.writeObject(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at …

Member Avatar for hanvyj
0
427
Member Avatar for Kiseki

Im currently running out of ideas at the moment and need some suggestions or ideas. [B][I]The alert (a popup) should be generated when the time at which the call-back time has been requested is in 1 minute from the current time.[/I][/B] My current program uses a while loop which keep …

Member Avatar for Kiseki
0
149
Member Avatar for manaila

Hi, Does Java provide any API that enables the communication between the Java GUI and an FPGA or any other hardware device? Cheers

0
62
Member Avatar for public-image

Hi Guys :) erm Im not the biggest on Javascript its more like a second language unlike PHP and HTML erm anyway, I am trying to redirect users with Javascript, the reason I am using javascript is so that users don't see the URL, its more of a precaution on …

Member Avatar for Airshow
0
213
Member Avatar for Transcendent

What is the difference between writing a application java program and a java program? I was asked to write an application java program and then I was asked to write a java program(s). Which is just one program and which is the one with that has to have two files …

Member Avatar for Slimmy
0
141
Member Avatar for sijothomas

Dear friends Please give me the JAVA CODE FOR CONVERTING COLOR IMAGE TO GREYSCALE IMAGE and creating the histogram of that greyscaled image .Including header files also... Anyway thanks in advance May GOD blessyou bye....

Member Avatar for masijade
-2
88
Member Avatar for dinoboy

Hello folks I am trying to get a PHP variable to pass values to a sample javascript but nothing shows up if I tried to echo the result. I tried passing regular strings as arguments and those worked fine. It just doesn't seem to be working if I tried to …

Member Avatar for Dragonbaki
0
192
Member Avatar for crisabraham

I am doing a project on developing a one time password system. In that, I have to encrypt a counter value and secret key together by HMAC SHA 1 algorithm. But the counter value and key need to be stored very safely on the server. Is there anyway by which …

Member Avatar for JamesCherrill
0
122
Member Avatar for fenomenal

I have to create a class that will pick partners at random for my class tomorrow, out of the people that are in it. What I have so far is simple enough... [CODE]import java.util.*; import java.util.Random; public class GetPartners { public GetPartners() { } public void getPartner() { String[] names …

Member Avatar for masijade
0
98
Member Avatar for kooia

Hi everyone, I'm completely new to javascript, and I was working on a project that's supposed to overlay an image when mouseover occurs. When you mouseover, it shows the image, but then when you're moving your mouse over that area, the overlaid image flashes. I think maybe this should go …

Member Avatar for R0bb0b
0
1K
Member Avatar for anandhikrishnan

Hi All, I have a app.js file. In that for a textarea if i entered data with single qoute eg: TEST'S it gets stored in DB as TEST'S to avoid DB problem. I return the textarea value from java file in json array to app.js. If the array name is …

Member Avatar for anandhikrishnan
0
121
Member Avatar for Virux

So to briefly explain my situation, I'm creating a DateChooser inside of a JComboBox. Most of them have these stupid little arrows to skip around through the years and months, like this one: [url]http://undocumentedmatlab.com/images/JIDE_DateChooserPanel.png[/url] But I want a drop-down list of the 12 months instead of arrows. So, I have …

Member Avatar for pbl
0
97
Member Avatar for blknmld69

How can I change the code below to applet? [CODE] import java.awt.*; import java.math.*; import javax.swing.*; import java.awt.event.*; public class Timer extends JFrame { JButton start = new JButton("Start/Reset"); JButton stop = new JButton("Stop"); JLabel time = new JLabel("Time"); javax.swing.Timer timer; int count = 0; public Timer() { super("Timer"); addWindowListener( …

Member Avatar for blknmld69
0
116
Member Avatar for LianaN

Hello! My JTree is filled from DB. If I add a new node, and then try to delete it, then the code shown below provides an error. As I see, selectedFolder is sometimes null. Why does it happen? Why [ICODE]getLastSelectedPathComponent()[/ICODE] doesn't return a node selected, but returns null in some …

Member Avatar for quuba
0
223
Member Avatar for kyojin

I can't seem to get my access to the private xCoor and yCoor. I try couple of things i just learn in school but none of em make sense. Can someone explain and tell me a way to get access to those xCoor, yCoor, width, and height while still leaving …

Member Avatar for Ezzaral
0
181
Member Avatar for NotThereAnymore

I am trying an example from my CS class. We learned recursion recently, and one of the examples I was given was to reverse a given string. The Java program compiles correctly, but when it is actually executed, instead of getting the intended result, I get this as my outcome. …

Member Avatar for aspire1
0
584
Member Avatar for Awesomeness

I'm doing active rendering for a game, and I was wondering,,, Does drawing outside a canvas still use just as much CPU? As in, If I draw one rectangle, and then draw another outside the canvas, does it ignore the other rectangle, or waste CPU on it? I want to …

Member Avatar for Awesomeness
0
82
Member Avatar for Doshag

Hello there! I am new to Java and DW, though I usually find great help already here! Say I need a constructor that accepts [COLOR="red"]variable number of parameters[/COLOR] up to 2 parameters, but if I pass only one parameter to this constructor, both parameters will take this number, and if …

Member Avatar for Doshag
0
173
Member Avatar for hwalsh

Hi, I've been working on this for two days. I need to pass an arraylist to another class. It gets the information, and will print out the menu, until the program goes back to the initial class, then the list empties. I don't get it, and I'm so confused. [CODE]public …

Member Avatar for hwalsh
0
7K
Member Avatar for LianaN

Hi! I want to delete an empty directory from FTP Server, however my code works only for files. Let's say the root directory in my FTP Server is called as [ICODE]Documents[/ICODE]. I want to delete a directory [ICODE]Director[/ICODE]. Then I execute [ICODE]client.deleteFile("\\" + selectedPath);[/ICODE], where [ICODE]selectedPath[/ICODE] is equal to [ICODE]Documents\Correspondence\Finance\Director[/ICODE]. …

Member Avatar for LianaN
0
829
Member Avatar for LianaN

Hi! How should I change the TableModel that extends AbstractTableModel to allow displaying empty data sets? Should the getValueAt method be chaged as follows? [CODE] public Object getValueAt(int row, int col) { Object str = ((Object[]) cache.elementAt(row))[col]; if (str != null) return str; else return ""; }[/CODE] ...or something else …

Member Avatar for quuba
0
1K
Member Avatar for LianaN

Hi! how could I delete all spaces in the string: [ICODE]String str = "AAA BBB CCC";[/ICODE] in order to get "AAABBBCCC" as a result? The following doesn't work: [ICODE]str.replaceAll(" ", "");[/ICODE] Thanks!

Member Avatar for LianaN
0
160
Member Avatar for pavank75

hi i got one problem to solve am almost did but facing problem for my last for loop iteration can any one help me this is the problem i received University of Newcastle School of Electrical Engineering and Computer Science SENG1110/6110 Programming Assignment 1 – Semester 1, 2010 Due: By …

Member Avatar for jon.kiparsky
0
188

The End.