35,618 Topics

Member Avatar for
Member Avatar for Pushpasheela

I want to fetch data from msaccess database using like. but my query not run. Here is my code.[CODE]String pin=cmblocation.getSelectedItem().toString(); rs2=st2.executeQuery("Select * from pin_numbers where pin_number like 'pin&????'");[/CODE]. But my query is not run. Please help me.

Member Avatar for peter_budo
0
234
Member Avatar for mukulnimker

pls help............ hello frnds i ma mukul i am working on a java project in netbeans i am using swing application there is a use of JTabbedPane for which i have to give the object of other class as a Parameter but when i create another class outside the previous …

Member Avatar for sidhu2204083
0
213
Member Avatar for Pushpasheela

I am new in java swing. Currently i am create one application. I am using one button name is 'Add entry'. if i click the add entry button then display one frame that contain some textfields. i am enter datas and click save then the value save in database record …

Member Avatar for JamesCherrill
0
93
Member Avatar for dina

Hi everyone, Just need abit of help. im studying selection sorting at the mo.....ive wrote an essay wot it and how it works but im tryin to an example in java and im having problems with that.....im not a very good java user.....ive only just started. i just wanted to …

Member Avatar for javaAddict
0
485
Member Avatar for LianaN

Hi all! Could someone pliz explain me how to delete a component (in my case -> JLabel that is placed on JLayeredPane), when it is double-clicked? So, as far as I understand, I must first just detect a componment that is double-clicked and then delete it. Although an idea is …

Member Avatar for LianaN
0
202
Member Avatar for boyz

Suppose we have function foo() in Servlet A. From Servlet B how can we call this foo() function of servlet A? both servlet are from same application and in same context....

Member Avatar for himanijain
0
102
Member Avatar for dan94

Hi, I am creating a java program using a JFrame as the main window. I have components inside the JFrame, and these components have tooltips enabled. When I show a tooltip, if the tooltip happens to overlap the JFrame boundaries, the tooltip shows no text, and only a blank rectangle. …

0
24
Member Avatar for ss_hat

I'm running into a roadblock on my program and the deadline is Tuesday(9/14). I'm at work all day and I'm hoping the interwebs can help me while I'm away (i can check @ lunch). I'm very new to Java and I'm still trying to digest the terminology so any clear …

Member Avatar for James cuck
0
225
Member Avatar for kch1973

I am trying to get an array sorted but I can't figure out how to correctly write the "if" statement in the sort method. I have been given the task of sorting the arrays by product name. I am not done with the program, but what I do have so …

Member Avatar for tong1
0
75
Member Avatar for brettbed

I think I'm having trouble with using parameters correctly in the JUnit assert in my Test method. My assertion fails even though I'm pretty sure my logic checks out. How do I construct the correct test with assert? Any pointers appreciated :) [CODE]public String season(int month, boolean inNorthernHemisphere) { // …

Member Avatar for jon.kiparsky
0
323
Member Avatar for fuser

Hey folks, recently I wrote a small application in java where it generates ip addresses in a 192.168.x.x block, and then proceeds to ping them to see if the address is available or not. The main issue with it right now is that it's extremely slow when I tested it …

Member Avatar for fuser
0
132
Member Avatar for kandyhyatt

Help: This is my first time on this site , and I have this assignment i been working on and i'm lost someone please help Here is the problem : 1.) A government research lab has concluded that certain chemicals commonly used in foods will cause death in laboratory mice. …

Member Avatar for Katana24
0
194
Member Avatar for amrita111

I am planning to develop a graphical project for my final year..Which tech should i choose? Microsoft Silverlight,Macromedia flash,Macromedia Shockwave,ajax etc, which of these is simple,scalable and platform independent?which combination of frontend and backend will be the best?

Member Avatar for Phaelax
0
100
Member Avatar for newtoajax

HI I am trying to pass a value from dropdown list on onchange event fo the dropdown in a jsp page through AJAX to servlet. The servlet then returns the value back to the jsp page and displays it in dropdown list. the problem I am facing is that the …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for Stefano Mtangoo

Hi, I have a page where I include another page passed via url Url is something like [B][url]http://www.daniweb.com/newthread.jsp?page=24[/url][/B] and I get the variable as [CODE=JAVA]String thePage = request.getParameter("page") ;[/CODE] Now I want to include it in my page and the code below doesn't work. I have googled and I cannot …

Member Avatar for Stefano Mtangoo
0
198
Member Avatar for TheComputerGuy

The code will work if compiled in terminal. It does not work if I use Eclipse, it simply gives me an Array Out of bounds. It mentions the ARGS[0] as the out of bounds part. Any suggestions? [CODE]/* * * Test Case 1: 1. James 2. David 3. Melanie 4. …

Member Avatar for NormR1
0
107
Member Avatar for kvij

Hi Experts, I am unable to login into oc4j after giving the correct username and password. i am able to get the oc4j enterprise manager and able to enter the username and password. but when i click submit button, it is not allowed me to proceed. Pls give me the …

Member Avatar for peter_budo
0
256
Member Avatar for satish2

hi everyone I want to develop a web browser.....can anyone suggest me how to develop it in java ...

Member Avatar for daudiam
0
81
Member Avatar for daudiam

I was reading an SCJP book by Khalid Mughal and I came across a statement [QUOTE]Enum constants are static members[/QUOTE] and another [QUOTE]Enum constant is an instance of its enum type[/QUOTE]. I am unable to reconcile the 2 statements. Are the constants static members or are they instances ? (Instances …

Member Avatar for daudiam
0
363
Member Avatar for daudiam

Its said that enums can be nested as top-level type declaration. Does it mean that it can be declared as a data member of a class, but it cannot be declared as a data member of a nested class as the nested class id not top-level ?

Member Avatar for daudiam
0
79
Member Avatar for gunjannigam

I am writing some data to a file using FileWriter and BufferedWriter. I want that while writing in the file if somebody else wants to open the file in MS Excel, it should open only in read only mode Here is a snippet of my FileWriter and BufferedWriter [CODE] while(true) …

Member Avatar for masijade
0
155
Member Avatar for miraj0072004

hello friends, I have s small problem, say if I declare a variable as String name="miraj"; now i want to use the value of the variable name, that is "miraj" and create a file using that name, which means something like miraj.txt ... how do I do it? The part …

Member Avatar for miraj0072004
0
97
Member Avatar for himmat.m4

Plz tell me, how to display number of value get form javascript function at every call on the jsp page. suppose in following code I m displaying IdNo var on jsp page in input text at call changeImage(IdNo) and here when next time call this fun then aganin overlaps value …

0
69
Member Avatar for michael.ngobeni

I have a string "Hello World" I want to change the color of [COLOR="red"]Hello[/COLOR] to red using the [B]setCMYKColorFillF[/B] function. I'm writing the string to a PDF file I know I'll use to write to the pdf: private PdfContentByte WriteTxt = null; WriteTxt.setCMYKColorFillF(float Cyan, float Magenta, float Yellow, float Black); …

Member Avatar for masijade
0
289
Member Avatar for palavi

Hi, can anybody tell me how to send mail from smtp to different email-id s like gmail,yahoo rediff from my java application. I am able to send mail from my machine within the company email-ids but not on other , if i put gmail or yahoo address im getting this …

0
71
Member Avatar for anandhikrishnan

I have a jsp file a.jsp which has b.js now i want to pass a value from a.jsp which is come from a java function like <% patientmodel.getpatient()%> I need to pass the value of this function to a function in b.js any one suggest me plz

Member Avatar for javaAddict
0
96
Member Avatar for mahdi68

Hi i have probleam on run application , when i click on "Launch as emulated Java ME JAD" this message shown : [QUOTE]com.sun.kvem.midletsuite.InvalidJadException: Reason = 22 The manifest or the application descriptor MUST contain the attribute: MIDlet-1[/QUOTE] but its run true when i click on "Launch as emulated Java ME …

Member Avatar for peter_budo
0
95
Member Avatar for gunbuster363

just as the topic, my boss told me that I should be writing some java api and need me to prepare for it because I've never write it. So, what exactly is "writing java api"? it's the api already been there? I think it is relate to websphere something... I …

Member Avatar for coil
0
153
Member Avatar for palavi

Hi All, I m trying to send a simple mail... but not able to send because of this exception [CODE]thread "main" javax.mail.AuthenticationFailedException:[/CODE] and the problem is in this line here is the simple java class for sending mail [CODE]public class SendMailUsingAuthentication { private static final String SMTP_HOST_NAME = "tx.technoinfo.in"; private …

0
100
Member Avatar for hazeeel

hi all!! I need some help here. It's the Translation matrix. I can't seem to get the output. I wonder if my conditions are right cause I've been changing them. Please do take a look from line 125 onwards. Thanks much! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ …

Member Avatar for hazeeel
0
266

The End.