Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~45.8K People Reached
Favorite Forums
Favorite Tags
Member Avatar for JamesCherrill

At the risk of making a total fool of myself... I got very excited when I discovered that Java's "only opaque rectangular windows" limitation has been removed. Full release is intended for Java 7, but working methods can be accessed thru com.sun.awt.AWTUtilities in recent releases of Java 6 (I'm using …

Member Avatar for Reverend Jim
2
1K
Member Avatar for Sunshineserene

Hi all, I need to read a text file (I've attached it, you can take a look), and then store all the numbers in it into a 2D array. After which, I need to parse it. I need urgent help here! ):

Member Avatar for Red_2
-2
19K
Member Avatar for leiger

This code works perfectly fine when I run it as a class file (the font is located in the same directory) - however when I package it into a JAR file it can't find the font and the program crashes. The font is definitely being included in the JAR archive, …

Member Avatar for karlmeier
0
4K
Member Avatar for nickmi

[CODE]public GuiPrototypeScreen1() { GuiPrototypeScreen1Layout customLayout = new GuiPrototypeScreen1Layout(); Object[] possibleValues = { "Search", "Contribute" }; Object selectedValue = JOptionPane.showInputDialog(null, "Do you want to ", "Welcome", JOptionPane.INFORMATION_MESSAGE, null, possibleValues, possibleValues[0]);[/CODE] Hey guys i need help because i am completly stuck. All i want is when a string is selected to redirect …

Member Avatar for mKorbel
0
150
Member Avatar for G_S

Hello. I recently started studying Java and OOP. I am currently creating a class that writes text to a file in a particular format. I have 'finished' it, and it works, but I am unsure as to the quality of the implementation. This is how it works: * First of …

Member Avatar for ~s.o.s~
0
209
Member Avatar for Feriscool

This is giving me a nullpointerexception: [CODE] public static final int[][] ARRAY = { { NUMBERS } }; public static boolean method1() { for (int[] data : ARRAY) { int numberOne = data[0]; } if (numberOne != numberTwo) { method2(numberOne); } } public static boolean method2(int number) { int count …

Member Avatar for JamesCherrill
0
148
Member Avatar for janice91

Dear Experts, I am new to the LinkedList concept and trying out coding a LinkedList problem which require me to do Insert newInteger based on the Index, Remove Index and Change oldInteger to newInteger based on Index. Please kindly advice what i should code in my [code] public void insert(int …

Member Avatar for Taywin
-1
185
Member Avatar for manjushreekaran

i want to write a java code that prints the value for xml tags from database in java??? which method is suitable for this??? currently i can able to print <company comp:loc=" "/> here i need to get value for loc=" "... how can i achieve this???

Member Avatar for leiger
0
102
Member Avatar for archie.herbias

Can you suggest a program that i can submit? I need your help for suggestions.. any programs that involves GUI.. simple programs could be.. Thank you!

Member Avatar for leiger
0
225
Member Avatar for gayathriselvam

I hav given the name of file as class name and saved it as .java by creating a folder in c drive.when i try to compile it shows the following exception.pls help me to resolve from this problem C:\Program Files\Java\jdk1.7.0\bin>javac HelloWorldApp.java javac: file not found: HelloWorldApp.java Usage: javac <options> <source …

Member Avatar for leiger
0
190
Member Avatar for mitchiexlolz

I am currently making my project and it involves graphing functions. I have chosen Java because as I have surfed the net, i was able to download a library (JGraphT) that tells me that it can help me graph mathematical functions. Now, my problem is, i dont know how to …

Member Avatar for leiger
0
117
Member Avatar for Proda

Hello everygone!! I signed up here hoping I will receive some help. I realize that every 2nd person writes: I am new...bla bla bla. I am new:)...I was sitting last 2 days trying to solve the issue and I think I am close but I don't see something. This is …

Member Avatar for leiger
0
231
Member Avatar for spittaxjets

I am currently working on writing a simple vending machine that dispenses just one drink, I am just a beginner at this so I would appreciate some help from this community. [CODE]package assignment1; public class VendingMachine extends java.lang.Object{ // fields java.lang.String givenDrinkName; private int givenDrinkPrice; private static final int INITIAL_BALANCE …

Member Avatar for leiger
0
136
Member Avatar for leiger

Hey everyone, Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X. When I need to store a serialised object, I'm …

Member Avatar for leiger
0
183
Member Avatar for Buffalo101

Hello, I'm trying to change the look of java apps to something native. In my first JFrame, I'm using: [code=java] try { //org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel //de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel //com.jgoodies.looks.plastic.Plastic3DLookAndFeel //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { …

Member Avatar for leiger
1
151
Member Avatar for printmatic

Ok so I wrote this with some help of a friend and it compiles fine and everything, however when I try and run it I get this error message. "Static Error: No constructor in Day matches this invocation Arguments: () Candidate signatures: Day(int)" I am not sure what this means …

Member Avatar for apines
0
746
Member Avatar for luoyi2008061424

for example: the html file is as fllows: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>HTML form </title> </head> </html> then after the htmlparser the xml file is as fllows: <?xml version="1.0" encoding="utf-8" ?> - <pagestructure> - <pageNodeList> - <pageNode id="0" name="" tagName="html" parentNodeId="-1"> <nodeValue /> </pageNode> - <pageNode id="1" …

Member Avatar for leiger
0
192
Member Avatar for koushikG

i need a GUI based java program where size of the frame increases whenever mouse is clicked over the frame.Plz help me

Member Avatar for hanvyj
-2
142
Member Avatar for wobuaini

the question is: Write a method with the signature: [B]public static void printABs(int n)[/B]that prints all the strings, less than or equal to length n, that can be built from the alphabet A,B. printABs must print out its strings starting from the shortest strings and ending in the longest. So, …

Member Avatar for leiger
0
95
Member Avatar for MeandJava

Hello everybody, I'm stuck with my Java program. This is the point. When a user had tried for nine times, the user has the choice to restart Hangman or close the program. But when they hit the y or n key during the game, it's just one of the 26 …

Member Avatar for leiger
0
7K
Member Avatar for Guna16

Hello Everyone, Can anyone tell me the source code for downloading software using Java. Thanks in advance.

Member Avatar for jon.kiparsky
-2
71
Member Avatar for waldchr

Is there a way to have a java program resize and use (move mainly) open windows on the desktop? I'm assuming I would need window hooks, but am not sure. I am writing a pong game that uses windows as the paddles and balls, and thought it would be more …

Member Avatar for leiger
0
72
Member Avatar for RBK_RBK

import java.text.*; import java.io.*; public class Assignment9 { public static double findMin(double[] numbers, int startIndex, int endIndex) { if (startIndex == endIndex) return numbers[startIndex]; else { double prevMin = findMin(numbers, startIndex, endIndex-1); if (prevMin>numbers[endIndex]) return numbers[endIndex]; else return prevMin; } } public static double computePositiveSum(double[] numbers, int startIndex, int endIndex) …

Member Avatar for jon.kiparsky
0
95
Member Avatar for koushikG

Can anybody help me to do a java awt program in which one frame opens another frame?

Member Avatar for javanub123
0
96
Member Avatar for thr

Hello i want create gui for aria2c( internet download manager ) with java for doing this aria2c has built in xmlrpc. i use xmlRpc to create gui for aria2c. in aria2c support site there is a example code for python programming language that uses xmlrpc [CODE]>>> import xmlrpclib >>> s …

Member Avatar for leiger
1
612
Member Avatar for yup790

Hello I'm trying to make a random number generator to work out probability and chance, although it keeps coming up with an ArrayIndexOutOfBoundsException on line 41(roughly). I would be really greatful if you could help! thx p.s.This is not for school[code]/* * To change this template, choose Tools | Templates …

Member Avatar for leiger
0
175
Member Avatar for Dokka

Hi! I need [B]create a class[/B] to represent a "rock". When a rock object is created it should have print out a message to the console saying: "Rock 1 created". I should have a field that contains the rock's [B]weight[/B], methods to [I]set[/I] and [I]get[/I] the weight and method to …

Member Avatar for tong1
0
264
Member Avatar for leiger

I have imported the Apache XML-RPC jar files, and got them working (has taken me all day to figure out how to get it working - so I'm kind of frustrated at the moment ;D) ... but that used the execute(..) method which requires two parameters ... there was no …

Member Avatar for leiger
0
2K
Member Avatar for leiger

I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is …

Member Avatar for leiger
0
540
Member Avatar for efelinks

Please, someone, help me out to check the errors in this code. What is the proble? I'm new to Java applet and I'm using notepad. I copied this code from a site to test but it is not working with me in the notepad and command prompt. import java.applet.*; import …

Member Avatar for freesoft_2000
0
106