Click here to Skip to main content
15,887,853 members
Home / Discussions / Java
   

Java

 
AnswerRe: Java Parallel Port Interfacing Pin
Richard MacCutchan18-Mar-10 22:56
mveRichard MacCutchan18-Mar-10 22:56 
GeneralRe: Java Parallel Port Interfacing Pin
Fahimul719-Mar-10 0:27
Fahimul719-Mar-10 0:27 
GeneralRe: Java Parallel Port Interfacing Pin
Richard MacCutchan19-Mar-10 1:20
mveRichard MacCutchan19-Mar-10 1:20 
GeneralRe: Java Parallel Port Interfacing Pin
Fahimul719-Mar-10 3:24
Fahimul719-Mar-10 3:24 
QuestionFirst Fit Help Pin
Blackberry8917-Mar-10 10:15
Blackberry8917-Mar-10 10:15 
AnswerRe: First Fit Help Pin
TorstenH.18-Mar-10 2:14
TorstenH.18-Mar-10 2:14 
QuestionJava Conversions Pin
James WG Murphy17-Mar-10 7:34
James WG Murphy17-Mar-10 7:34 
AnswerRe: Java Conversions Pin
Richard MacCutchan17-Mar-10 7:55
mveRichard MacCutchan17-Mar-10 7:55 
This is a continuation of your question below which you removed; please leave questions intact as the thread is now unintelligible to others viewing it for the first time.

One thing that is quite noticeable is the commonality between all the different buttons - a classic example of the need for OO - but we can leave that till later.

As a first step try removing all buttons 2 to 7 and just work on one button until you get the idea working properly. You can then add the others on top with a lot less work - and return to the OO model to do it. First thing is to decide what you want to do when the button is clicked, probably something like:

  • get the text from the 'input' text box
  • parse and validate the text to ensure it's a number
  • convert to an integer, based on the input format
  • reformat it in the output format desired
  • display on the 'output' label

You could develop this code in a simple console app using the Integer class to parse the input and the printf() function to display the output.

Once again, use the tutorials as they contain a wealth of information to help you learn some of the basic classes and functions.
txtspeak is the realm of 9 year old children, not developers. Christian Graus

AnswerRe: Java Conversions [modified] Pin
TorstenH.18-Mar-10 2:02
TorstenH.18-Mar-10 2:02 
QuestionJNLP Error Pin
002comp16-Mar-10 22:37
002comp16-Mar-10 22:37 
AnswerRe: JNLP Error(Solved) Pin
002comp17-Mar-10 0:05
002comp17-Mar-10 0:05 
AnswerRe: JButton Help Pin
Richard MacCutchan16-Mar-10 22:47
mveRichard MacCutchan16-Mar-10 22:47 
GeneralRe: JButton Help Pin
James WG Murphy17-Mar-10 2:58
James WG Murphy17-Mar-10 2:58 
GeneralRe: JButton Help Pin
Richard MacCutchan17-Mar-10 4:04
mveRichard MacCutchan17-Mar-10 4:04 
GeneralRe: JButton Help Pin
David Skelly17-Mar-10 6:19
David Skelly17-Mar-10 6:19 
AnswerRe: JButton Help Pin
David Skelly16-Mar-10 23:29
David Skelly16-Mar-10 23:29 
Questiondate_time problum in java?? Pin
AmbiguousName16-Mar-10 2:34
AmbiguousName16-Mar-10 2:34 
AnswerRe: date_time problum in java?? Pin
O.Phil16-Mar-10 3:02
O.Phil16-Mar-10 3:02 
GeneralRe: date_time problum in java?? Pin
AmbiguousName16-Mar-10 3:15
AmbiguousName16-Mar-10 3:15 
Questionuser authentication Pin
Kunalpuranik15-Mar-10 19:04
Kunalpuranik15-Mar-10 19:04 
AnswerRe: user authentication Pin
Richard MacCutchan15-Mar-10 22:29
mveRichard MacCutchan15-Mar-10 22:29 
GeneralRe: user authentication Pin
Kunalpuranik16-Mar-10 0:32
Kunalpuranik16-Mar-10 0:32 
GeneralRe: user authentication Pin
Richard MacCutchan16-Mar-10 3:30
mveRichard MacCutchan16-Mar-10 3:30 
GeneralRe: user authentication Pin
David Skelly16-Mar-10 3:39
David Skelly16-Mar-10 3:39 
GeneralRe: user authentication Pin
Richard MacCutchan16-Mar-10 4:15
mveRichard MacCutchan16-Mar-10 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.