-
Replied To a Post in new runescape private server
Jagex T&C include "Jagex®, RuneScape®, War of Legends® and FunOrb® are registered trade marks of Jagex Limited in the United Kingdom, the United States and other countries. All third party … -
Replied To a Post in How do we resize the JTabbedPane Buttons?
You could use a layout manager (eg GridBagLayout) that will grow components according to the available space. http://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html -
Replied To a Post in Detecting the next word of sentence
StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the split … -
Replied To a Post in How to know if you are using a 128, 192, 256 bit AES encryption?
That's the AES encrypt/decrypt with a system-generated secret key. As always, Google is your friend. It only took a minute to find [this link](http://karanbalkar.com/2014/02/tutorial-76-implement-aes-256-encryptiondecryption-using-java/) to an example of generating an … -
Replied To a Post in How to know if you are using a 128, 192, 256 bit AES encryption?
Good morning. (Sorry abou the relay in replying, it was bedtime here!) You are requesting DES and MD5, so I can't believe that will give you an AES implementation. Looking … -
Gave Reputation to Taywin in How to know if you are using a 128, 192, 256 bit AES encryption?
How about look at this sample [implementation](https://www.owasp.org/index.php/Using_the_Java_Cryptographic_Extensions)? I am not sure if your implementation is really AES... -
Replied To a Post in Resizing a JPanel and JFrame at the same time.
setSize rarely has any effect with a layout manager. setMinimumSize and setPreferredSize are recognised by most layout managers unless they conflict with the layout manager's own rules. The simple layout … -
Replied To a Post in How to know if you are using a 128, 192, 256 bit AES encryption?
Which on-line doc are you referring to? (ps: I'm no expert in this area, but as nobody else has responded I'm also trying to interpret the doc and related tutorials. … -
Replied To a Post in How to know if you are using a 128, 192, 256 bit AES encryption?
Why do you think that PBEWithMD5AndDES will generate any kind of AES key? -
Replied To a Post in Resizing a JPanel and JFrame at the same time.
This is the downside of not using a layout manager! Try adding a listener for the resize events and resetting the necessary bounds in the event handler. -
Replied To a Post in Java AES encryption error.
The output of the encrypt is a byte array that can contain any sequence of byte values, yet you try to convert that into a UniCode String using your system's … -
Replied To a Post in Best place to learn JAVA
[This thread](https://www.daniweb.com/software-development/java/threads/99132/starting-java-java-tutorials-resources-faq) (at the top of the Java forum) will give you lots of useful info about where to start. -
Replied To a Post in Creating GUI -hard coding
In real life I would expect to have to do some experimenting to get the right results and sensible code, but as a starting point... 1: Yes, I'd have a … -
Began Watching How much commenting in my code is appropriate?
For example: If I had a loop that does something complicated, would I explain how the loop works in my comments, or would I just state the purpose of the … -
Replied To a Post in How much commenting in my code is appropriate?
I agree with the above. Time spent on variable, method/function, and class names is time well spent because it leads to code that needs no further explanation. Personally I'm a … -
Replied To a Post in Creating GUI -hard coding
You can do almost anything with a GridBagLayout, but it's not easy to write, and even harder to read! The simplest approach is just to use JPanels within JPanels to … -
Replied To a Post in IsoTriangle
If you don't know what language you are coding in then you need more help than anyone here is likely to give. Regardless of language, this is an easy exercise … -
Replied To a Post in Can someone explain this code
Yes, it's a bit like length() for arrays - just tells you how many rows there are. You subtract 1 because the rows are numbered 0 to (n-1) (just like … -
Replied To a Post in Can someone explain this code
Presumably the `row` variable contains a row number in the range 0 to (n-1) where n is the number of rows in a JTable, and `InteractiveForm.this.tableModel` is a reference to … -
Replied To a Post in JAVAFX ui lock with game loop
JavaFX has a rich set of classes to handle animation, so you don't need to mess about with low-level timers or (shudder) timing loops. Have a look at the `javafx.animation.Animation` … -
Replied To a Post in methods of using ItemListener
Don't forget that Java 8 has been out since last Spring, so you should be using a Lambda expression instead of that clunky anonymous inner class, eg c.addItemListener(ie -> System.out.println("Your … -
Replied To a Post in Determining which cell the event has been generated
If row numbers are 0-based, you will never get a row number >= rowCount. With a problem like that it's always quicker and easier to do a little bit of … -
Replied To a Post in google voice commands
Domn't know what was wrong with that link. I just tried it again and it's OK http://www.javacodegeeks.com/2012/08/android-voice-recognition-tutorial.html -
Replied To a Post in Determining which cell the event has been generated
How about checking the values of `getEditingColumn()` and `getEditingRow()` ? (Details are in the API doc as always.) -
Replied To a Post in google voice commands
A quick Google showed loads of tutorial or sample code for Android voice recognition - including [this one](http://wwwhttp://www.javacodegeeks.com/2012/08/android-voice-recognition-tutorial.html) in Java -
Replied To a Post in Appending a new row to a JTable at runtime
You're getting that error because the constructor you used to create your JTable is a simple one that doesn't build a TabelModel that supports adding rows. DefaultTableModel is the obvious … -
Replied To a Post in capturing user data using JTable
You could create a simple form to capture the info for one quote. Maybe a bit more work than a JTable, but you could make the user interface look a … -
Replied To a Post in Appending a new row to a JTable at runtime
As in my previous post: It's getModel, not getTableModel, and you have to cast the returned value to (DefaultTableModel) because thats where the addRow method is. (Unless, of course, you … -
Replied To a Post in What is the inverse of XOR?
Yes, a second XOR always takes you back to the original value. That's not the real problem here. He has a load of additions, reversed by a load of subtractions. … -
Replied To a Post in What is the inverse of XOR?
I may have the answer, but don't have the time to check it out fully. Anyway... encrypt: add first 4 sets of numbers XOR add last 4 sets of numbers … -
Replied To a Post in What is the inverse of XOR?
He adds a load of numbers befroe XORing, and a load more afterwards, so these need to be subtracted when decoding. ps: Since they are all just added, I can't … -
Replied To a Post in What is the inverse of XOR?
oh :( -
Replied To a Post in What is the inverse of XOR?
I noticed the decrypted values are just the original values - 130 That must be a clue to the problem -
Replied To a Post in how to avoid two java process running for a single windows service
With a file, sooner or later it's inevitable that the program will terminate abnormally in some way, leaving the file in the wrong state. You could open a ServerSocket (a … -
Replied To a Post in Appending a new row to a JTable at runtime
Here's the trick: JTable is just a view, the actual structure and data is in its `TableModel`. Get your JTable's TableModel `(DefaultTableModel) myTable.getModel()`, and add a new row to that … -
Replied To a Post in Appending a new row to a JTable at runtime
Which part of that is the problem? Responding to the enter button, adding a blank row to a table, or something else? -
Replied To a Post in smsLib
Please explain what you have tried and EXACTLY what problems or error messages you are getting. The more you tell us, the better the answers you may get. -
Replied To a Post in about java basics
In as *PURE* OO langage like SmallTalk that's true, but not for Java. The designers of Java were worried about the overheads of using an Object for simple stuff like … -
Replied To a Post in GUI program only show blank window
You don't say what's wrong with the other buttons. Are the action listener methods being called? (You can add a print statement as the first line in the listener to … -
Replied To a Post in Towers of Hanoi state Space
You want what's called a "deep copy". Google that for examples of how to do it, and discussions about why it's a pain in the * and what the alternatives … -
Replied To a Post in GUI program only show blank window
You never initialise your layout variables (line 24), so all your panels have a null layout manager. ps: all this padding and boilerplate exit.addActionListener(new java.awt.event.ActionListener(){ public void actionPerformed(ActionEvent e){ exit_ActionPerformed(e); … -
Replied To a Post in Which class/library used to detect hardware through java
What do you need to know about - all the hardware, or just the presence of a standard input device (keyboard) and/or a screen? -
Replied To a Post in solving N-Queen problem using bee colony algorithm by java code
Very interesting. And your reason for posting it was...? ps DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work … -
Replied To a Post in How to do loopi
The structure looks like this (pseudo cde) // do your initialisation do { // do one transaction answer = ask user "do another?" } while (answer is yes); -
Replied To a Post in Why is array not working in this code?
Maybe newToken is not an array of longs, but if it is, then certainly because tokens[tokens.length-1] isn't a String -
Replied To a Post in Starting "Java" [Java tutorials / resources / faq]
It's easy to think that programming is all about writing programs. It's not. [This excellent article from LifeHacker](http://lifehacker.com/what-it-really-takes-to-be-a-professional-programmer-1674327537) talks about some of the other essential skills for anyone who hopes … -
Replied To a Post in How to wait for input?
Use a modal JDialog to hold the components (see API doc for details) -
Replied To a Post in merry christmas
Thank you, and the same to you J -
Replied To a Post in preference get the old data
At line 35 you update the settings OK, but you do not update the top5Time array. When you print the results you print them from that array, so the printout … -
Replied To a Post in check 2d array is inc order
How about something simpler like boolean isAscending(int[][] a) { int last = Integer.MIN_VALUE; for (int r = 0; r < a.length; r++) { for (int c = 0; c < …
The End.