32,204 Topics
| |
I have been using textpad and Java for 3 months without trouble. We just got a new computer 64 bit Windows 7. I have downloaded Java and Textpad on the new computer but when I go to external tools to compile, the compile and run tools are missing. I have … | |
Hi! Sorry for my bad english. How is made that toolbar on this site always stays on the botom of the page. (So, when we log in, on this site will appears toolbar. When we scroll down, this toolbar stay, it doesn't move anywhere, it stay on the bottom.) | |
Hi! I need to make multi-user software that will allow accessing a DB from different PCs and working with this DB. Could someone pliz just generally (conceptually, but in step-wise manner) describe me how this task can be implemented? Maybe, there are some good tutorials or free examples on this … | |
i want to import an array, but i cant.. i have my chess class.. and one method that tries to check whether there is a check. basically like this.. [CODE] if(pieces[columnStartN][rowStartN].isMoveValid(columnStartN,rowStartN,columnEndN,rowEnd) && pieceDevour){ pieces[columnStartN][rowStartN]=null; pieces[columnStartN][rowStartN]=pieces[columnEndN][rowEnd]; } rowStartN=rowEnd; columnStart=columnEnd; int kingRow=0; int kingColumn=0; chessPiece="BKing"; int c=0; int pieceColumn=0; int pieceRow=0; for(int … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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) { // … | |
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 … | |
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. … | |
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? | |
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. … | |
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 … | |
hi everyone I want to develop a web browser.....can anyone suggest me how to develop it in java ... | |
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 … | |
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 ? | |
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) … | |
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 … | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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{ … | |
Here is a starter program that prints prime factors of a supplied numbers as a string.It's quite buggy as the input 8 yields 1.2.4 when what i wanted is 1.2.2.2 and I don't understand why the return in line 32 (commented) is not executed. [code=java] //program to compute prime factors … |
The End.