Click here to Skip to main content
16,011,754 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I just wanted to find out how i can make a java interface that would be able to change a variable to what the user has entered.
Examples would be appreciated.
Thanks
Posted

If I understand your question correctly, it is one of the most basic parts of programming.

Therefore I suggest that you take a look at this[^] and if necessary go back to the beginning of that tutorial set and start following the examples.

If I have misinterpreted your question, I apologize.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 15-Feb-11 16:36pm    
Who knows what OP meant so say? (I would say, it's not very likely your guesswork gets the result, but who knows?) I think, a general advice to sort out terminology and concepts is the only applicable. I tried.
--SA
Espen Harlinn 17-Feb-11 9:37am    
A 5, You're right - even when OP was probably thinking about the UI - and describing it as interface, something most of us would have answered as "public interface blabla { ... }" :)
Your first problem is that you probably unaware of many different meanings of the term "interface", that's why you fail to conduct what exactly do you mean.

Whatever you purpose is, you need to get familiar with most of the concepts implied under the term. Please see http://en.wikipedia.org/wiki/Interface_(computing)[^].

For Java interfaces, see this: http://download.oracle.com/javase/tutorial/java/concepts/interface.html[^] (and reference from this document); for Java interfaces, there a re many sources, see http://en.wikipedia.org/wiki/Interface_(Java)[^], and, for example, this: http://download.oracle.com/javase/tutorial/java/concepts/interface.html[^] (Goodle for more).

—SA
 
Share this answer
 
v2
Comments
Henry Minute 15-Feb-11 19:44pm    
I don't think the OP was talking about 'Interface' I think he was talking about GUI interfaces.

Somehow I doubt if we will ever find out who was right though. :)
Sergey Alexandrovich Kryukov 16-Feb-11 21:06pm    
I realize that.

You see, your doubt is quite reasonable.

I created some confusion because I put a wrong reference, not the one I meant after "concepts implied under the term". I'll fix it in a minute; and see below.
(And thank you very much for the note!)

You could have noticed that I tend trying to help instead of answering question (answering a question is some cases is opposite to helping). I based my answer on the idea, that failing to see different meaning of the terms in OP is so severe, that answering the question would not help at all. Bad communication is a sign of bad understanding skills. So the only positive effect could be from some brainwash.
I hope you understand my point.

Thank you,
--SA
Espen Harlinn 17-Feb-11 9:41am    
Good instructional effort, my 5
Sergey Alexandrovich Kryukov 17-Feb-11 20:00pm    
Thank you, even though Henry thinks it answers wrong question, OP just need to sort our terminology/concepts to be able to communicate.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900