32,199 Topics

Member Avatar for
Member Avatar for zyaday

I'm using the java DnD class...I found this programm as an example that could help me understand it better..While dragging the image...the cursor changes its shape..but what i want is the image being dragged instead of te cursor...that is i want to replace the cursor with the image while i'm …

0
61
Member Avatar for Padda1

I would just like to know how you get a JComboBox to display all the fonts currently on the system without having to type it one by one. Urgent help would greatly appreciated.

Member Avatar for SylviaCrissy
0
55
Member Avatar for micheal_lobster

Hye..Anybody can help me? I need some help here.. Below is program 1 (main program)[CODE]import java.util.*; public class Staff { public double weeklyIncome, monthlyIncome; public String name, staffId; [B]/*how to code the input method to read the staff name, staff id and weekly salary from a keyboard?*/[/B] } //Program 1 …

Member Avatar for micheal_lobster
0
123
Member Avatar for Dio1080

Im just trying to figure out why I have a array out of bounds that all can somebody help? [code=java] public class Life2 { public static void main(String[] args) throws Exception{ boolean dead; int winsX = 0; int num = 1; int count = 0; int countL; int countD; char …

Member Avatar for Alex Edwards
0
141
Member Avatar for ceyesuma

Is there someone that could answer questions concerning the HibernateTravelApp tutorial. I have written it a couple times per the tutorial and I am presently remodeling it to fit my own MySQL database. If there is a convenient way to transfer this data base along with the .zip of the …

Member Avatar for sciwizeh
0
255
Member Avatar for llemes4011

ok, so, we have to make a program that displays the date 100 days from today, the day you were born, and the date 10,000 days after your birth date. I've done all that, but i want to take it a step further, i want the user to be able …

Member Avatar for llemes4011
0
142
Member Avatar for sparis

I would like to ask your opinion[s] about how to approach the problem of generating Swing application UIs at runtime. And, to start: I am writing a Swing client application - not an applet and not a browser-based application. My IDEAL user experience would be to simply display DHTML in …

Member Avatar for sciwizeh
0
119
Member Avatar for esy928

hello! is there a method or class that lets you assign events to the keys of your keyboard (spacebar to fire gun)? and is there a way to measure how long the key was held down? thanks!!! any help is greatly appreciated.. ive tried google-ing it but i had no …

Member Avatar for esy928
0
151
Member Avatar for erniestl

I am getting an error when I try to install java on my computer that I just installed windows xp home. the harddrive was formated when I installed xp . It gives me this error "error applying transforms. Verify that the specified transform paths are valid" How do I correct …

Member Avatar for gerbil
0
93
Member Avatar for amrita.r

please help me.. m in final year MCA student.. i have to do a project on c-quiz application in Java[/U][/B] as front end and Oracle as back end.. if anyone can send me the source codes to <email snipped>

Member Avatar for stephen84s
0
98
Member Avatar for erinr

I'm working on a school project and I need some help. The below works, but when I click on the "Report" button I want my data to print to a new frame. I'm not sure how to do this. Do I use a JFrame? if(arg=="Report") { try { DataInputStream readinput …

Member Avatar for stephen84s
0
105
Member Avatar for mwg9119

I am trying to read in a group of numbers from a users input through a console after the sentinel value of 0 is entered then I need to output the largest integer put in and the next largest. I can get the largest but not the next largest. What …

Member Avatar for sciwizeh
0
70
Member Avatar for Engulu

Hello members, Am new in programming can someone help me and solve this for me i have tried and failed since last week. Thanks. Develop a simple application that, when run, Welcomes the users and tells them the name of the last person to run the application, this information should …

Member Avatar for jasimp
0
97
Member Avatar for mimiru83

Hi I am trying to get some images (10 frames per second) from a webcam so that later I can detect the moving objects.. My code is the following but I dont know how to change it so that I can get 10 frames per second.Any help? package video; import …

Member Avatar for mimiru83
0
66
Member Avatar for Dan_AlfaRomeo

Hi guys, I'm about to make a choice for my career and I want to know your opinion about it. I just graduated CS in Romania and I now have 2 distinct employment possibilities: 1. Junior Java Developer- one of the clasic paths for the fresh CS graduates 2. Junior …

Member Avatar for Salem
0
90
Member Avatar for amrita.r

Hi.. please help me.. i dont know much about java.. but i have to do a project Order processing System in java and oracle.. This project is only for shop keeper its not online.. It shoul have two categories 1)Order procsesing where it should take orders from customer for a …

-1
75
Member Avatar for rkp803

i need help writing a program where i input a Cent vaule and it should give me a value in how many ways can u create change for it in half dollars,quarters, nickels, dimes, pennys. for example if i typed 100 which is one dollar it should say 292. this …

Member Avatar for jwenting
0
190
Member Avatar for Ash22ambition

I really need some help in my Java Programming class. I am in the last week of my class and our final requires us to compose and compile an Inventory program. Please respond if you get this. I will be working on my project all night. My AIM is ash22ambition …

Member Avatar for jasimp
0
90
Member Avatar for hny_lyn

heLLo everybody!!! we are discussing java OOP's now!!! mainLy about Interfaces, Abstract classes and etc!!! weLL.., i would like to ask if you could give me some examples regarding this one!!! such as implementing interfaces on my main program!! the more complex the program is.....the more i want it!!! i …

Member Avatar for Ezzaral
0
76
Member Avatar for SylviaCrissy

Hi all, I am working with POI API. I am reading an excel worksheet and done some modifications using poi and saved the new file into different location.while writing into a new location the exist file removes the blank sheet which are not used by the program using workbook.removeSheetAt(index).When i …

0
49
Member Avatar for abhij1987
Member Avatar for stephen84s
0
56
Member Avatar for jOhN_pRattZ

hello im john rico a com sci student could anyone help me to make a program that has three equation and three unknown pls.

Member Avatar for Phaelax
0
178
Member Avatar for esy928
Member Avatar for esy928
0
293
Member Avatar for algorion

Okay im working on this game and all the code was in JSE 1.2 i just updated to that new package with the NetBeans IDE 5.0 and wh atnot inside it which is very nifty actually problem is all of my code when put into project files wont find any …

Member Avatar for javaAddict
0
151
Member Avatar for udani
Member Avatar for ceyesuma

[code] <id column="PERSONID" name="personId"> <generator class="increment"/> </id> [/code] What is this animal? is it setting a primary key? like wise [code] <set cascade="all-delete-orphan" inverse="true" lazy="true" name="trips" table="TRIP"> <key column="PERSONID"/> <one-to-many class="travel.Trip"/> </set> [/code] is this setting up like a file or list or something that uses like attributes? taking the …

Member Avatar for ceyesuma
0
96
Member Avatar for ceyesuma

private void buildPersonOptions(){ List<Person> personList= null; } I put this code in and it asked to import the class Person. as far as I know there is a null list(personList) of the type List. so why is the List have this thing? <Person> is what? -Steve

Member Avatar for ceyesuma
0
98
Member Avatar for lordx78

[code=java] import javax.swing.*; import java.awt.*; public class CreateToolbar{ public static void main(String[] args) { JFrame frame = new JFrame("Create a toolbar Which have three buttons Such as: Cut, Copy, Paste"); JToolBar toolbar = new JToolBar("Toolbar", JToolBar.HORIZONTAL); JButton cutbutton = new JButton(new ImageIcon("cut.gif")); toolbar.add(cutbutton); JButton copybutton = new JButton(new ImageIcon("copy.gif")); toolbar.add(copybutton); …

Member Avatar for lordx78
0
95
Member Avatar for Motvel

Suppose i have a JPanel 5x5 and the layout is GridLayout(). It's possible to switch cell between each other?

Member Avatar for Ezzaral
0
50
Member Avatar for ceyesuma

[code] Query q =session.createQuery("from Person"); [/code] ? so there is a Query q named "from Person") I don't understand how the actual query reads(via SQL). Can someone explain this code: because clearly there is a personList and a personOptions of the type Option[] the size of personList.size() and the 4 …

0
61

The End.