Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
89% Quality Score
Upvotes Received
14
Posts with Upvotes
13
Upvoting Members
12
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
6 Commented Posts
0 Endorsements
Ranked #654
~60.3K People Reached
Favorite Forums
Favorite Tags

108 Posted Topics

Member Avatar for jsefraijeen

You can always make a loop and add the the first operator to itself second operator times If you want to be fancier you can << the first operator the largest multiplier of 2 of the second operator and then use the initial loop for the reminder (not multiple of …

Member Avatar for JamesCherrill
0
9K
Member Avatar for mani_1991
Member Avatar for AndrewSD

So a basic question, you won't find any [i]polynomial[/i] library What is the probelm with the code you wrote ?

Member Avatar for George_1
0
1K
Member Avatar for harshInITworld
Member Avatar for diew
Member Avatar for marsangel
Member Avatar for marsangel
0
101
Member Avatar for otherdummy

The garbage collector won't free objects that have still a reference. If it does, and the hell if I know how you figure that out, it is because your code does not have any more links to these objects. Unless you show your code, there is not much we can …

Member Avatar for BestJewSinceJC
0
957
Member Avatar for ceyesuma

ArrayList are not synchronized while Vector are. No way Vactor will become obsolete. And yes you can use Vector of Vector. JTable use them

Member Avatar for ceyesuma
0
920
Member Avatar for nered

If you do not want to use standard Java JComponent and their look and feel why using Java ?

Member Avatar for JamesCherrill
0
107
Member Avatar for bhagawatshinde

JComboBox inside JComboBox ? Never seen that before. I have seen cascaded combobox where selecting an item in the first one will change wat the other one shows but never what you mentionned. Anxious to see your code

Member Avatar for bhagawatshinde
0
80
Member Avatar for 2blew2b

You do nothing with number1 and number2 generated in your actionPerformed() You defined them there. may be you want: number1 = rand.nextInt(10); number2 = rand.nextInt(10); so it will affect your instance variables not the ones created in your actionPerformed()

Member Avatar for pbl
0
152
Member Avatar for Jessurider

Never heard of the SqlConnection() class usually use con = DriverManager.getConnection(dbPath + bdName, "sa", ""); And NetBeans has nothing to do with your problem/ NetBeans is just a fancy GUI editor no need to mention it in your topic title

Member Avatar for pbl
0
281
Member Avatar for trivax

JTextField.getText() will always return a String. I might have a length() of 0 but will never be null

Member Avatar for Ezzaral
0
898
Member Avatar for winecoding

If, for your application, a null String and a zero size String are equivalent you can: [code] if(a == null || a.length() == 0) { } [/code]

Member Avatar for mKorbel
0
159
Member Avatar for curbster

A char can always be converted to an int char x = 'z'; int i = x; as far as basic datatype are concerned you cannot apply a method to them so intLetter = charLetter.parseInt(); is obviously wrong

Member Avatar for curbster
0
1K
Member Avatar for newbie14

cronjob is Unix related java System.currentTimeMillis(); will give you the actual time in millis

Member Avatar for newbie14
0
116
Member Avatar for sirlink99
Member Avatar for sirlink99
0
272
Member Avatar for jsefraijeen

And please a more descriptive topic title "Help" is kind of a completly useless topic title in this forum

Member Avatar for masijade
0
911
Member Avatar for alonewolf23

from System.out.println("\n" + var1,"\n" + var2); to System.out.println("\n" + var1 + "\n" + var2);

Member Avatar for alonewolf23
0
19K
Member Avatar for Feriscool
Member Avatar for tedelston
Member Avatar for tedelston
0
279
Member Avatar for VichuTheWizard

If you want to capture a keystroke it will be done through an ActionListener or a KeyboardListener or an EventListener of some kind all Java methods I am afraid off

Member Avatar for VichuTheWizard
0
197
Member Avatar for newbie14

make sure you put a System.out.println() statement in all your catch clause which will p[rint the error encountered

Member Avatar for newbie14
0
254
Member Avatar for deepakjainmit

Your question does no make sense You miss some basic concept(s) How to configure my car to use shis racks while using a trailer ?

Member Avatar for ~s.o.s~
0
83
Member Avatar for salmanrauf

[url]http://download.oracle.com/javase/tutorial/essential/exceptions/try.html[/url]

Member Avatar for JamesCherrill
0
137
Member Avatar for mani_1991

I'll bet your problem is somewhere else or you have a lot and lot and a lot of data in each of your pane. If it is the case, yes you can. Just add all your pane (JPanel I presume) empty Have a Listener to inform you when a Tab …

Member Avatar for vjcagay
0
167
Member Avatar for musikluver4
Member Avatar for musikluver4
0
64
Member Avatar for skitband

just open the .html file find where the Applet is coming from FTP it back to yoyr local file system jad it

Member Avatar for pbl
0
68
Member Avatar for Janu Sam

What in your terminoly is an "object name" tabbedPane.getSelectedIndex() will tell you which pane is visible

Member Avatar for Janu Sam
0
104
Member Avatar for rohit2

If each Tab has a JTextPane make an array of them then textPane[tabbedPane.getSelectedIndex()] will be the one in use

Member Avatar for pbl
0
103
Member Avatar for cocoll

don't really see how you can import a .exe in Java will love to see the actual syntax of your import statement. Anyhow, if you managed to realize that exploit, for it to work in a .jar you will have to jar the .exe and use methods like getCodeBase() to …

Member Avatar for cocoll
0
96
Member Avatar for oppie204

Stay away from third parties software to do some basic operations like this one. Is your TerminalIO .jar file in your PATH variable ? If not, BlueJ must have, as all other IDE do, a place where you can specify external .jar to use. But as Akill10 mentionned, better to …

Member Avatar for pbl
0
747
Member Avatar for avirooge

What do you have written up to now ? We will be glad to help you fix your bug(s) but we are not a code writting service.

Member Avatar for pbl
0
64
Member Avatar for ZozOQ
Member Avatar for dheepakpm
Member Avatar for newgeekintown
Member Avatar for mbouster

Syntax is since JRE 1.5 ArrayList<Customer> alCust = new ArrayList<Customer>(); In your Customer class your can have [code] class Customer { private ArrayList<Account> alAct; // constructor public Customer() { alAct = new ArrayList<Account>(); ... [/code] Happy coding

Member Avatar for jon.kiparsky
0
230
Member Avatar for juniper2009

That is horrible code checking many times for the same condition at least make it that way [code] public boolean handleEvent(Event evt) { // handleEvent() if (evt.id == Event.WINDOW_DESTROY && evt.target == this) Checkers_WindowDestroy(evt.target); //window close action return super.handleEvent(evt); } if (evt.id == Event.ACTION_EVENT) { if(evt.target == newGameButton) { newGameButton_Action(evt.target); …

Member Avatar for masijade
0
159
Member Avatar for zetologos
Member Avatar for Coyboss
Member Avatar for Coyboss
0
231
Member Avatar for pady pramod

If this company respect the common Java standards which say that class name should start by a letter in uppercase and only lowercase are allowed in package statement the correct syntax would be: #import com.lowagie.*; to import all class of that package

Member Avatar for pbl
0
34
Member Avatar for hitomi_inukai

Easier to write [code] class LinkedList implements Comparable<LinkedList> { public int compareTo(LinkedList other) { // no cast required return probability - other.probability; } } [/code] but as probability is a float better to [code] class LinkedList implements Comparable<LinkedList> { public int compareTo(LinkedList other) { return Float.compare(probability, other.probability); } } [/code] …

Member Avatar for hitomi_inukai
0
109
Member Avatar for blueman:-0

[url]http://www.oracle.com/technetwork/java/index-jsp-141752.html[/url]

Member Avatar for blueman:-0
0
86
Member Avatar for blueman:-0

If it is a USB drive just like any other file from a regular hard disk.

Member Avatar for blueman:-0
0
79
Member Avatar for bibiki

As character everything > 255 will be registered in the file as String "?" which is decimal 63 hexa 3F bin 111111 so this is why when you read it back "?" it will be translated to 111111 unless your PC is configured with extanded Arabic/Kanji characters set

Member Avatar for bibiki
0
4K
Member Avatar for mindbend

Avoid GUI builders. They generate human beings hardly understandable code. We can fix error(s) in the code YOU wrote but we cannot be behind you when you correctly/uncorrectly use the features of a GUI generator. Swing is really easy to use and when you will pass a Java interview and …

Member Avatar for mindbend
0
2K
Member Avatar for javanew

On a GUI application you can build a KeyEvent object with that sequence and send it to the keyListener of your JComponent listening for KeyEvent On a console application don't really see a way to implement that

Member Avatar for Democles
0
111
Member Avatar for pigmario

ouf a lot complicated for nothing [code] ArrayList<Point> getPoint(String filename) { ArrayList<Point> al = new ArrayList<Point>(); Scanner scan = new Scanner(new File(filename)); while(scan.hasNextLine()) { String line = scan.nextLine(); String[] point = line.split(","); al.add(new Point(Integer.parseInt(point[0]), Integer.parseInt(point[1])); } return al; } [/code]

Member Avatar for JKP()
0
100
Member Avatar for alvalany

Fill a Vector out of your ResultSet results JComboBox has a constructor that receives a Vector as parameter

Member Avatar for pbl
0
106
Member Avatar for gaupoit
Member Avatar for Akill10
0
83

The End.