383 Posted Topics

Member Avatar for mits28

Problem lies in the column name, which you are using in the rs.getString() method. Correct your column name.

Member Avatar for mits28
0
465
Member Avatar for Steve2490

Seems like you are working on bydefault class of JBUTTON, you can customize classes in java according to your needs... AS JBUTTON implements imageobserver class you better check you desired function and overwrite it according to your own needs.

Member Avatar for mKorbel
0
813
Member Avatar for wallet123

Swap these two line. [code] employee =Integer.parseInt(JOptionPane.showInputDialog(null,"Enter number of employees: ")); int size[]= new int[employee]; [/code]

Member Avatar for Philippe.Lahaie
0
136
Member Avatar for Gsterminator
Member Avatar for Gsterminator
0
1K
Member Avatar for Majestics

I have a laptop, i have pluged it with a wire which is near to the router it worked but when i connected it a wire which is 60m away from router it says "UN-identified network", please help me to resolve it.

Member Avatar for Majestics
0
133
Member Avatar for Majestics

ORA-01000: maximum open cursors exceeded tips I am getting following error. I made a combo box with select query behind it, i used itemlistener to fetch data. Today during testing i found that if user move too quickly in combo box so select query will be fired for each number …

Member Avatar for shapam
0
176
Member Avatar for mits28

Well count any not null column in the table. Then the below code will help u. [code] if(resultset.next()) long count = Parse to Long (resultset.getString("columnname")); [/code]

Member Avatar for stultuske
0
459
Member Avatar for mohamed moamen

There are two solutions for this , 1) SERVER BASED (LEARN TO USE SOCKETS) 2) WEB BASED (LEARN TO USE JAVA EE)

Member Avatar for dantinkakkar
0
445
Member Avatar for long89

[url]http://stackoverflow.com/questions/50532/how-do-i-format-a-number-in-java[/url] You need format class in java

Member Avatar for mKorbel
0
224
Member Avatar for kyriacos1986

Its too simple String.split("(Space)") // Leave a space here ... Second split function returns a String array so u need a String array to carry the values.... Like [code] String a[] = String.Split(" "); [/code] And then print them or use them for ur logic... Hope this Help....

Member Avatar for NormR1
0
186
Member Avatar for TIM_M_91

Convert Write String to a function which takes int as a parameter and returns the String to execute. Let me explain more [code] method String writeString(int) { return Here is ur code } Declare a variable locally increment it and send to function. [/code]

Member Avatar for TIM_M_91
0
174
Member Avatar for rnlds.walfrets

what java have to do with this? If you want to optimize sound then use a algorithem to optimize the sound.

Member Avatar for Majestics
0
50
Member Avatar for Vampiricx3

I think you want to get the current salary of the user when u change the combo box value, try read this article [url]http://docs.oracle.com/javase/tutorial/uiswing/events/itemlistener.html[/url] Make a method which on change or selected values in combo box search the file for the specified value and place it on the textfield. Hope …

Member Avatar for Vampiricx3
0
161
Member Avatar for Majestics

I hope u havnt taken it filter in java :-), i want to create a filter for internet which do content filtering on some keyword, but dont know how to start , any body just an hint please..... Thank you

Member Avatar for Majestics
0
82
Member Avatar for Majestics

I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution.

Member Avatar for mKorbel
0
312
Member Avatar for Majestics

I have only one lan card, i want to set up a proxy server and redirect all other pc to my pc for content filtering, does any one knows any better method, because i cant afford new lan card.

Member Avatar for Majestics
0
98
Member Avatar for Majestics

Its a simple problem... I placed the socket code under a button, if server is present it respond very quickly if not it takes time to respond.... I want to shorter that time , is there any way?

Member Avatar for ~s.o.s~
0
826
Member Avatar for boris90

Agreed with Ezzaral, Check Line 32, you are using a variable without even intializing it. Check this page out [url]http://www.javaworld.com/javaworld/jw-03-1998/jw-03-initialization.html?page=2[/url].

Member Avatar for DavidKroukamp
0
1K
Member Avatar for _neo_

Seems like u want to abort a thread cleanly if it fails to complete in a desired time. I think "interrupt" is one of the possible way's, u need a exception handler in which u can print a message or empty as u desire....

Member Avatar for _neo_
0
296
Member Avatar for Majestics
Member Avatar for applejax77

Print out the original string u got [code] System.out.print(userString); [/code]

Member Avatar for hfx642
0
209
Member Avatar for Majestics

I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... …

Member Avatar for Majestics
0
229
Member Avatar for skiabox

Reduce the number of column from 50 to 30.... [code] incoming = new JTextArea(15, 30); [/code] Your Text is appearing but isnt adjusting over frame correctly...

Member Avatar for skiabox
0
353
Member Avatar for Majestics

I tried today many times but nothing work... So whats the procedure to give exam for this certification????

0
34
Member Avatar for Majestics

I am using jcalendar... I want to bind it with a textfield, i am using button to display this calendar , but i want to display it below the date text field, any suggestions???

Member Avatar for Majestics
0
98
Member Avatar for Majestics

Which two code fragments correctly create and initialize a static array of int elements? (Choose two.) A. static final int[] a = { 100,200 }; B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; } C. static final int[] a = new int[2]{ 100,200 }; D. static final …

Member Avatar for Majestics
0
251
Member Avatar for libathos

[url]http://forums.devx.com/archive/index.php/t-27297.html[/url] Read this thread.

Member Avatar for libathos
0
88
Member Avatar for Majestics

I am creating a project, which one start copy itself to any drive and stop execution and run other file which was copied.... No progress yet... Has any one done similar type of project before.... Need a bit for starting guidance.... Thank you.

Member Avatar for mKorbel
0
114
Member Avatar for Majestics

Please help me solving few thought questions 1) 255.0.0.0 is class A subnet mask which mean 255 network portion but in ip address we can only use upto 126.255.255.255, after 127 class b range starts? 2) If we buy an IP , after doing subnetting of that ip, how will …

Member Avatar for Majestics
0
110
Member Avatar for Majestics

I googled alot about netbios but didnt understand it completely. Please help me a bit 1) Why we use netbios 2) What is netbios alternative 3) Why microsoft is not using netbios any more Thank you all.. Single line answer is enough....

Member Avatar for dimsums
0
77
Member Avatar for Majestics

[code] mysql_query("UPDATE hostip SET time = '".date("d/m/y h:m:s")."' WHERE ipaddress = '".$ip."'"); [/code] Whats the problem in this query.... Its giving me syntax error...

Member Avatar for Majestics
0
59
Member Avatar for matharoo

You must have a cipher text and its original text (If You are Lucky) Try Brute Force with different keys (Work 100% But takes alot time) Try Intelligent Search for key (Require some data about the key)

Member Avatar for hfx642
0
229
Member Avatar for Majestics

Well i just want to say , dani web is a great forum to discuss IT but there is no area where we can discuss over security and secure coding. As many recent incidents proved that learning secure coding methods also necessary for programmers.... So.... Just a suggestion....................................... :)

Member Avatar for Narue
0
143
Member Avatar for Majestics

I am working on packet analyzing software, so i just need a kick to start by reading the packets of wireless, but i dont have any idea regarding to it... Any who handled such kinds of projects before please help me a bit....

Member Avatar for joehms22
0
112
Member Avatar for Majestics

SOrry guys to disturb you all... I just need a little help , can some one please give me a brief introduction to pointer... also i have some question, what does these mean [code] int i; cout<<i (mean to print i) cout<<*i (what does it mean) cout<<**i (what does this …

Member Avatar for Narue
0
118
Member Avatar for Majestics

Sorry folks, i m a bit confused in networking protocols so please help a bit my questions are 1) Why udp is made if ip is present for communication 2) How routers communicate each other ? Through mac or Ip address 3) How router broadcast? Through Ip or udp Thank …

Member Avatar for imobby
0
127
Member Avatar for Tank50

[url]http://stackoverflow.com/questions/400255/how-to-put-more-than-1000-values-into-an-oracle-in-clause[/url] Check this its already solved here.

Member Avatar for Prateek nandan
0
508
Member Avatar for Majestics
Member Avatar for nalawar
0
159
Member Avatar for Majestics

How can we access hard disk addresses from c language, accessing ram address is easy? Also can we access MBR of NTFS through c , just a bit dissusion required for starting my work? Thank You All in Advance.....

Member Avatar for nezachem
0
264
Member Avatar for geeerald1131

So where is the code............... Its a easy assignement check: scanner class for input through console mode JOptionPane input dialogue box for input through GUI code after creating a bit logic and submit here... We will help you further...

Member Avatar for Ezzaral
0
100
Member Avatar for sebseb678

1) Use i++ at the end, If you want to show user that please enter value one then use i+1 in print statement. 2) You need to set size for integer array before using it, int a[] = new int[6] // because you want to store 6 values 3) Take …

Member Avatar for Majestics
0
107
Member Avatar for dennysimon

Authors values for setSize is Correct, it correctly display the frame and its component. While choosing a fixed size frame Author possibly tried a value then improved it further until the display become correct.. I myself tried fixed values many times and reaches to conclusion after trying some values... :)Well …

Member Avatar for Majestics
0
109
Member Avatar for Majestics

I have a experience of network programming in java... now i want to implement them in c with more better support, i have used c++ long time a ago... Now i dont know which compiler of c++ is better, which support socket api... and which operating system provide more flexibility …

Member Avatar for doug65536
0
207
Member Avatar for Mi_99

Check are u intializing each drawObjects before you use it [code] drawObjects[i] = new Shapes(); // Are u doing like this......................... [/code]

Member Avatar for JamesCherrill
0
203
Member Avatar for Majestics

I want to create MouseListener library from scracth... Its just a assignement ... I have no idea to develop a thing in which i cant use that api directly from java... Please Help.

Member Avatar for Majestics
0
116
Member Avatar for Majestics

how to move a jframe which has no taskbar? [code] frame.addmousemotionlistener(this); public void mousedragged(MouseEvent e) { // What to write here } [/code] I tried setBounds of jframe but it flicker when we try to move the frame.

Member Avatar for Kyberium
1
277
Member Avatar for zmstevens

Use Decimal Format Class.... [code] DecimalFormat df = new DecimalFormat("#.##"); df.format(doubleValues) // Return a String [/code]

Member Avatar for Zaad
0
360
Member Avatar for moparman426

[code] testScore = 0 and then while(testScore>100) then execute loop [/code] If testScore is zero how can it execute the loop.. Hope this help

Member Avatar for hfx642
0
160
Member Avatar for laguardian
Member Avatar for Majestics

I have choosen information security for my future field... Which language will be best for analysis of information and exploiting bugs? C or c++ or java or any other ?

Member Avatar for diafol
0
199

The End.