32,199 Topics

Member Avatar for
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
210
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
91
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
479
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
193
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
22
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
222
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
72
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
290
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
130
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
192
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
98
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
106
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
217
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
79
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
362
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
77
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
153
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 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
287
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
69
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
93
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
151
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
97
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
264
Member Avatar for guyfrompluto

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 …

Member Avatar for guyfrompluto
0
325
Member Avatar for plasticfood

ok i need to write something like [CODE] if { days > 5 && minutes > 5 } [/CODE] basically i need minutes to be around 5 to 10, and cannot be greater than 10. how do i do write this within the same if statement?

Member Avatar for plasticfood
0
98
Member Avatar for Andrew Davis 64

THIS IS A PROGRAM THAT WILL OPEN A WINDOW, THEN WHEN YOU CLICK CALCULATE GPA, A JOPTIONPANE THING WILL OPEN AND YOU WILL PUT YOUR GRADE IN, THAT WILL HAPPEN 2 MORE TIMES THEN THE LAST ONE WILL SHOW YOU YOUR GRADE AVERAGE. WHEN I COMPILE THIS PROGRAM, EVERYTHING IS …

Member Avatar for coil
0
299
Member Avatar for NewOrder

i established an array of objects. i want to user to name a chess piece, the name of the chesspiece then will search the object in the array [CODE]package il.co.ChessInterface; import il.co.Pawn.Pawn; import il.co.Bishop.*; import il.co.King.*; import il.co.Queen.*; import il.co.Rook.*; import il.co.Knight.*; import java.io.Console; public class ChessInterface { public static …

Member Avatar for NewOrder
0
188
Member Avatar for Xufyan
Member Avatar for vgd

import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class DerbyTest { private Connection connect = null; private Statement statement = null; private ResultSet resultSet = null; public DerbyTest() throws Exception { try { Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance(); connect = DriverManager.getConnection("jdbc:derby://localhost:`1527/vineet"); statement=connect.createStatement(); resultSet = statement.executeQuery("SELECT * FROM EMPLOYEE"); while (resultSet.next()) { String user …

Member Avatar for masijade
0
202

The End.