- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
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 … |
|
Re:
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! ): |
|
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, … |
|
Re:
[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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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??? |
|
Re:
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! |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
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 … |
|
Re:
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) { … |
|
Re:
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 … |
|
Re:
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" … |
|
Re:
i need a GUI based java program where size of the frame increases whenever mouse is clicked over the frame.Plz help me |
|
Re:
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, … |
|
Re:
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 … |
|
Re:
Hello Everyone, Can anyone tell me the source code for downloading software using Java. Thanks in advance. |
|
Re:
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 … |
|
Re:
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) … |
|
Re:
Can anybody help me to do a java awt program in which one frame opens another frame? |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
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 … |
|
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 … |
|
Re:
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 … |