32,204 Topics

Member Avatar for
Member Avatar for mattyg1192003

Hey Guys, I am a new student to Java and I am working on an assignment for school. I am not looking for anyone to do my work for me, just some guidance on what I can do to fix the problem. I have done research on this issue on …

Member Avatar for AhmedGhazey
0
3K
Member Avatar for Thigina

Hi, while im doing my project, i have problem to save edited data from jtable into database..i have attach the sample interface and here is the code...please help me...tq [CODE] ResultSet rs=st.executeQuery("select * from 3BITC"); while(rs.next()){ jTable1.getValueAt(row, col); row++; col++; } rs.close(); try{ Statement st1=con.createStatement(); ResultSet rs1=st1.executeQuery("UPDATE 3BITC SET Status …

Member Avatar for Thigina
0
2K
Member Avatar for manish250

I have a silly question for you guys.i am running a java program [CODE]public class manish { public static void main(String s[]) { Date d=new Date(); System.out.println("Date is"+d.toString()); } } [/CODE] while i running this on RHEL 5.2 i am getting this output Date isFri Jul 08 10:55:30 IST 2011 …

Member Avatar for Majestics
0
222
Member Avatar for masterofpuppets

Hello guys, Here's a problem that's giving me a hard time. I am working on a web server in Java and right now I want to enable the user to create a photo album. The user can type the album name in an <input> field in an HTML form. The …

Member Avatar for masterofpuppets
0
167
Member Avatar for Majestics

Jtable insert new inserted row at the top.... I want the new inserted row below. Problem 10 james microsoft c.e.o 9 peter linux mgr requirement 9 peter linux mgr 10 james microsoft c.e.o

Member Avatar for Majestics
0
106
Member Avatar for sirlink99

I am wondering if there is an easier way to check if the mouse is in a rectangle. Currently I am using an if statement like so [CODE] if (mX > rectX && mX < rectX + 20 && mY > rectY && my < rectY + 10){ } // …

Member Avatar for sirlink99
0
100
Member Avatar for sirlink99

I have just started making a new program. I barely have any code, and when I load it the frame is clear for like 20 seconds and then it loads what goes into the frame. why does it take so long to load? I have another code that I tested …

Member Avatar for mKorbel
0
2K
Member Avatar for duuude

Hi, I'm trying to use tabbedpanes, my objective is to have a frame split in half( in height). You have the upper tabbed pane, and the lower tabbed pane. Both of them have the same three panels, so the user can choose wether to see panel1 in up and pane2 …

Member Avatar for Anuradha Mandal
0
135
Member Avatar for bhallarahul

Is it possible to run C/C++ program on java platform? if yes? please tell me how can i get the output of the program??

Member Avatar for komyg
0
122
Member Avatar for eman 22

how can i detect all cycles in the graph? i tried to use DFS and back edges and this ddetect some loops in te graph but not all cycles.

Member Avatar for Anuradha Mandal
-1
95
Member Avatar for komyg

Hi, I am deveoloping a Web Service solution that is hosted inside a JBoss 4.2.3 sever and connects to a JMS queue that is hosted on another server. So far I am creating a new connection to the JMS queue each time the web service is called, this means that, …

0
60
Member Avatar for bhawna_5nov

[ICODE] public void actionPerformed(ActionEvent evt) { String arg=evt.getActionCommand(); if(arg.equals("ORDER INFO")) { AppletContext context = getAppletContext(); context.showDocument ("file:///C:/Java/jdk1.6.0_24/bin/Order_info.html", "_blank"); Applet Order_info = context.getApplet("Order_info"); }[/ICODE]

Member Avatar for NormR1
0
163
Member Avatar for PythonNewbie2

Let's say I have a text file with these contents: [CODE] color1 = yellow.$199 * 100 color2 = red.$1 * 22 myNextColor = green.$3 whatsNext = blue.$$ oneMore = orange.$ [/CODE] I need to be able to get an array like this: [CODE]colorsInFile = ["yellow","red","green","blue","orange"][/CODE] In python, the regex for …

Member Avatar for AhmedGhazey
0
163
Member Avatar for Majestics

[code]ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated[/code] its the exception, i want to match it with condition and take decision , but its not working [code]if(e1.getMessage().equals("ORA-00001: unique constraint (WAJAHAT.INVOICE_UQ) violated"))[/code]

Member Avatar for mKorbel
0
114
Member Avatar for rsandp

sir/ma'am can somebody help me configure Textpad As i want to compile a java file and run it that i have saved in the directory of my choice 1.configure 2.preference 3.select Tools on the left hand side of the preference panel and select the java tools by adding them. after …

Member Avatar for Sadun89
0
333
Member Avatar for gbatemper

I was making a basic nooby java tribe game, and I needed a way to return to main menu. Can anyone tell me of any methods? This is my current code (incomplete) I want it to return to main menu if a certain number is entered after the stats are …

Member Avatar for NormR1
0
5K
Member Avatar for Java John needs

I can ot get my output to reflect accurate info, does anyone have a possible solution? /////////////////////////////////////////////////////////// import java.util.Scanner; public class Count { public static void main (String[] args) { String phrase; // a string of characters int countBlank; // the number of blanks (spaces) in the phrase int length; …

Member Avatar for NormR1
0
276
Member Avatar for Krokcy

Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has …

Member Avatar for Krokcy
0
187
Member Avatar for sagngh8

Hi Everyone, I am using the java applet to take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When …

Member Avatar for Ezzaral
0
455
Member Avatar for manish250

hello all i am doing a copy operation from a file to another file.in source file i have 13 digit no but in destination file there is only 12 digit copied.code is as follows. [CODE]public void createOriganalFile() { try { File ObjInputFile1 = new File(strFilepath + "_dummy.txt"); File ObjOutputFile1 = …

Member Avatar for hfx642
0
192
Member Avatar for rsandp

Sir/ma'am , please help me how can I convert an integer to a string in java without using a convertSimple(); convertInteger(); convertFormat():

Member Avatar for NormR1
0
89
Member Avatar for yancouto

Hey guys, I'm working on a game, and I was trying to mirror the gif images inside the program so I wouldn't have to do it manually (And also so it wouldn't use twice as much space to store the mirrored gifs). Anyway, I Google'd it and found [URL="http://stackoverflow.com/questions/1708011/create-a-imageicon-that-is-the-mirror-of-another-one/1708909#1708909"]this answer[/URL], …

Member Avatar for Ezzaral
0
536
Member Avatar for by_stander

Hey all, I'm having some issues using ArrayList. Here's the code.. [CODE] ArrayList<Double> var = new ArrayList<Double>(); var.add(15.0); var.add(0.0); [/CODE] I could just use [CODE] double[] var = {15.0 , 0.0}; [/CODE] for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList. Any …

Member Avatar for by_stander
0
7K
Member Avatar for t@sos

Hello to everyone, I am new to this forum as I am new to Java. I would like to know if anyone has come up with a method that helps in learning the huge collection of classes of the Java API. I know that question is not easy to answer. …

Member Avatar for gyno
0
2K
Member Avatar for Dranip
Member Avatar for cazaletm

Hello great java minds. Could you please tell me why I get "illegal start of expression" errors for the following headers? Thanks for your wisdom!! Lines generating this error: [CODE]public static String getName()[/CODE] --and-- [CODE]public static void displayResults()[/CODE] Here is my first class (that includes this code): [CODE]import java.io.*; import …

Member Avatar for jwenting
0
6K
Member Avatar for Kate Teoh

Hi, I had developed a system which run well at localhost but once run at server, the following error will appear: Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\awt.dll: The specified procedure could not be found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown …

Member Avatar for ~s.o.s~
0
341
Member Avatar for varoluscu_prens

Hi there; There is such a simple code here, and with the propotion of its simplicity, it drives me crazy. Here is the code: [CODE] private void fillArrayLists(String fileName,ArrayList <String> list) { try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream(fileName); …

Member Avatar for varoluscu_prens
0
175
Member Avatar for MxDev

hi guys, currently am planning to buy an exam simulator for SCJA exam so which one is the best to get prepared for the test [COLOR="Red"]ucertify [/COLOR]or [COLOR="Red"]whizlabs[/COLOR]?? if there's any other of these please mention it here. Thanks

Member Avatar for MxDev
0
97
Member Avatar for Jessurider

can anyone tell me why this project(attached) is slow in execution!!!! is there any remedy for this problem...... please anyone tell some tip to make this project to run faster..........

Member Avatar for teo236
0
137

The End.