35,618 Topics

Member Avatar for
Member Avatar for GlenRogers

Im writing some software for a friends Pc repair shop, simple booking in software so he has a record of customers, addresses and repairs they have had done. I'm getting throught it quite well thanks to members of this forum. Question is: I have a Customer class with attributes String …

Member Avatar for GlenRogers
0
160
Member Avatar for sshekhar.1987
Member Avatar for peter_budo
0
102
Member Avatar for GlenRogers

I'm trying to add an image to the top of my GUI as a logo. I tried to put it in a JPanel then add the JPanel at the top of the GUI, the only problem is that my image isnt going into my JPanel. Heres my code for it …

Member Avatar for GlenRogers
0
238
Member Avatar for jooa

Hi, I'm trying to write some code that will draw a filled in black circle at the coordinates where the mouse is clicked. Here is what I have written so far, I can currently get the coordinates of the mouse click point but nothing is displayed. I also get an …

Member Avatar for Roberdus
0
4K
Member Avatar for mydreamgirl

My source code runs fine in IBM RAD. When I tried to run it in JBuilder, I encountered an error "Incompatible object argument for function call" while running a JSP file. Any idea how to handle it? See details below: 012-06-16 10:20:48 - Ctx( ): Exception in: R( + /FileUploadAction.jsp …

Member Avatar for mydreamgirl
0
460
Member Avatar for london-G

Hello, can you please help me to see what's wrong? INSERT INTO jobs (priority, date, deadline, material, status) VALUES (?, ?,?,?,? ) select customerID from Customer where CustomerID =?"

Member Avatar for stultuske
0
180
Member Avatar for GlenRogers

How would I go about searching a map that hasbeen written to a file? My GUI has a method caled processFind() which prints all keys in the map, I have this working but not if the map is saved to a file. private void processFind() { gui.results.setText(""); for (Object s …

Member Avatar for GlenRogers
0
105
Member Avatar for pooja.shinde

Can i create **GUI in round** shape wihtout title bar by extending **JFrame** class in java. I want circular shape instead of default rectangle. How can i do this? Plz give solution as soon as possible.

Member Avatar for JamesCherrill
0
610
Member Avatar for millroy

well i am tring to make compass with a needle which rotates with respect to the position but the problem is my new to j2me and i dont know how could i access my gps to to do so i want to know wat r the various api's i can …

Member Avatar for millroy
0
83
Member Avatar for kaushik259106

Hi every one, Can anyone give me some idea about this! I need to check a string is numeric or not. Example: if string is 1111111111 returns true if string is 11111111aa returns false if string is 11 1111111 returns false if string is 111~`11111 returns false Any idea will …

Member Avatar for ScottyKnows
0
1K
Member Avatar for Krokcy

Is there anyway, through java, to tell whether a tv connected to your computer is turned on or off? Or if its not build into java is there any way to even do this in windows? Because nothing change in windows or my raedeon driver when i turn my tv …

Member Avatar for Krokcy
0
281
Member Avatar for pooja.shinde

System date & time is in SimpleDate format. How can i convert this into integer? **"sdf.format(new Date(System.currentTimeMillis()))"...**.......... I want to convert current time** into integer** data type. *Plz plz plz help me.* Any help for this is alwayz welcome.

Member Avatar for pooja.shinde
0
243
Member Avatar for trishtren

Hey, Im stuck trying to figure out how to insert one byte between two other bytes that have already been created in an output stream: OutputStream out = new FileOutputStream("MyFile"); try { out.write((byte) 70); /*Byte should be inserted between these elements*/ out.write((byte) 40); /* but must be performed at end …

Member Avatar for trishtren
0
182
Member Avatar for RaymondTracer

**Wow I'm an idiot, I just saw the problem, how did I not see that for so long. How do I delete threads?** Hello everyone! I have a problem that confuses the hell out of me, when I try to compile my class file I get the "illegal start of …

Member Avatar for RaymondTracer
0
205
Member Avatar for ubi_ct83

Hi, i need help on updating data in mysql using JDBC since im using java.i want to send data from arraylist and it seems and error when i run it.below is my code for update. [CODE] private void update(ArrayList<String> list, int uid) { try { Connection con=null; Class.forName ("com.mysql.jdbc.Driver").newInstance (); …

Member Avatar for JamesCherrill
0
664
Member Avatar for hwoarang69

i need help creating enemy. i want enemy to move closer to player and enemy can only move left or right; here is my enemy class public class Enemy extends BasicGameState { Animation enemy; Animation e_movingRIGHT; Animation e_movingLEFT; int[] duration = {200, 200}; //how fast animation change double speed = …

Member Avatar for NormR1
0
185
Member Avatar for GlenRogers

I have a TreeeMap that i need to wite to file. I tried this: try { File file = new File("reboot_customer_details"); FileOutputStream f = new FileOutputStream(file); ObjectOutputStream s = new ObjectOutputStream(f); s.writeObject(customerDetails);//customerDetails is the map i need to save s.close(); } catch(Exception ex) { gui.results.setText("Error: " + ex); } When …

Member Avatar for JamesCherrill
0
185
Member Avatar for GlenRogers

Hi, can anyone tell me how to make the text a user types into a JTextfield appear in uppercase regardless if caps is on or not? Thanks Glen..

Member Avatar for GlenRogers
0
266
Member Avatar for raviaaaa

HI Could yu please tell me how to get previous values from current iteration in the below example : public void parseDtoCollection(Collection dtos) contains list of dtos in private AssetClassVersion createNewAssetClassVersion(AssetDTO dto) method i am iterating but i want to get to get previous itearation values in current iteration if …

Member Avatar for JamesCherrill
0
362
Member Avatar for Majestics

Can some one provide me an example to call dll from java? I learning some thing about JNI , also linkage with c++ but doesnt found any cool stuff on c# and java... I want a free solution. Thanx in advance.

Member Avatar for Majestics
0
227
Member Avatar for london-G

Hello, I would like to retrieve the data from one of my database table. I have read many stuff about it and found out that I need to create a table model which is quite confusing to me. Basically my table consists of customer information. What is the best way …

Member Avatar for nikolaos
0
1K
Member Avatar for shasha56959

hello,i have a problem in my math project. my project is to write a program that read set of element and its relation. the input data will be from text file.(Set<space>Relation). {1,2,3} {(1,1),(2,2),(3,3),(1,2),(1,3),(2,3)} i have no problem reading text file into the program but im stuck when i want to …

Member Avatar for NormR1
0
156
Member Avatar for mits28

I am trying to learn JavaMail API.i am working on this.i have search much from google..i know for hosting mails, mail server is require and Apache james is a open source server.i have downloaded that.but i am not able to configure that.i dont understand how actualy javamail work with James.I …

Member Avatar for godzab
0
178
Member Avatar for bilfus01

I am hoping this is an easy question. I am not well versed in Java, I am a ITSM admin, but the ITSM product we use comes with Tomcat as it's web server. I am trying to find out if there is a simple way to set index file (welcome …

Member Avatar for Imby
0
155
Member Avatar for trishtren

Hey, Iv been working a lot with binary files recently and i am currently stuck trying to save a string to a file. The problem is i do not want the literal string value of "010100000000000100010011000000000001000100110" to be saved to the file I want the above binary string to be …

Member Avatar for NormR1
0
1K
Member Avatar for speakon

Hello! I am starting a small text based game, I have created my set and get methods for my player class: import java.util.*; public class player extends main{ /* * Player attributes: * Name * Weight * Morale * Money */ //PLAYER ATTRIBUTES private String name; private int weight; private …

Member Avatar for trishtren
0
290
Member Avatar for sirlink99

I am making a game, and I am wondering how to make an image from a graphics object. I have tiles stored in an xml file. I then read from this file to make the level, however I would like to have a thumbnail for each level. This is why …

Member Avatar for richieking
0
80
Member Avatar for cvanithakpm

main() is a static method and is part of class. Then how is it that main can access instance members?

Member Avatar for richieking
0
130
Member Avatar for anilchuthur

i havae problem java connection with sql server 2005 in windows authentication mode my code is as follows Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); Connection connection = DriverManager .getConnection("jdbc:sqlserver://localhost:1433;database=dbName;integratedSecurity=true;");

Member Avatar for anilchuthur
0
328
Member Avatar for raviaaaa

HI All i am new to java jdk 1.4 and tomcat 4 my requirement is id desc name firstname lastname 1 hi ravi m last 1 hi ravi m middle 1 hi ravi m mapp 2 hi kiran ha hey 3 hi vinoth hello yes id is ----id desc name …

Member Avatar for JamesCherrill
0
409

The End.