sentence
stringlengths
1
1.38k
label
stringclasses
3 values
It allows you to easily share/replicate maps of data between mulitple JVM instances (same box or different).
o
It is easy to use and has lots of wire level protocol options (TCP, UDP Multicast, etc.).
p
Java date time in arabic.
o
How to get arabic date when the user selected language is Arabic and date in english format when selected language is english in spring application ?
o
I tried by setting the default locale to english and arabic based on the request but this doesn't help me in getting calendar api time in arabic for (9 hours 15 mins).
o
Is your question about the locale (language) or the timezone?
o
If suppose i get (9 AM) in english in a lookup service i need corresponding value in arabic based on the user selected language in website.
o
Use Joda time or Java 8 Date time API.
o
Following is the example of Java 8 API CODESNIPPET_JAVA1 .
o
Convert Java AWT code to Android.
o
I developed code in Java using AWT.
o
Now I would like to use that code in Android.
o
While I used that code in Android, error is showing at "graphics".
o
Here is part of code.
o
CODESNIPPET_JAVA1 .
o
How to convert it to, and use it in, Android?
o
1) What error?
o
Copy/paste error messages and output.
o
2) Please use code formatting.
o
3) Please look to increase that (17%) [accept rate]( URL_http://meta.stackoverflow.com/a/65088/155831) .
o
OK.Thanks for your valuable suggestion.
o
Android has his own UI library :) so you need to write the code with the android UI standard you cannot use swing or awt in android UI :) For more details about android and java this is a important information you need to know The difference between Dalvik Virtual Machine and Java Virtual Machine and you'll get the all the points .
p
Thanks for your help.Please suggest good link to know more difference b/w DVM and JVM.
p
Swing button vs AWT button?
o
I'm in the beginnings of making a Minesweeper game for a final class project, but before I begin on making the GUI that is required for it, I would like some advice on what buttons to use.
o
Should I be using an AWT or Swing button?
o
And which would benefit the program more?
o
I'm using Netbeans if that makes a difference.
o
You should use Swing generally.
o
The main reason being is Swing was designed to replace/enhance AWT.
o
Swing is, generally, more configurable and flexible to use.
p
You should avoid mixing AWT and Swing components within the same UI, they tend not to play well together.
p
There is more support and information available for Swing components (not to mention a large community of 3rd party components and developers) You could also take a look at URL_http://dn.embarcadero.com/article/26970 [AWT-vs-Swing] and URL_http://stackoverflow.com/questions/408820/what-is-the- difference-between-swing-and-awt [What-is-the-difference-between-swing-and- awt?]
o
for more details .
o
Few people develop in AWT anymore.
o
(Hover your mouse over the AWT and Swing buttons in your question.
o
You will see 61 people follow AWT questions and 1.3k follow Swing).
o
I would use Swing.
o
Spend your time learning a more current API and its features.
o
Start with the URL_http://docs.oracle.com/javase/tutorial/uiswing/TOC.html [Swing-tutorial] for the basics.
o
If Swing is deprecated, what is the alternative?
o
I heard that apparently Swing is being developed no longer.
o
I like Swing and use it all the time.
o
What should I now be using instead?
o
Although Oracle has much reduced the work on Swing (apparently, seen from an outsider), the "new Swing" JavaFX (I don't like this way to call it actually because it has almost no commonalities with Swing) is, from my point of view, not ready yet for primetime.
o
I'm sure Swing has still a long life to live (at least 2 or 3 more years).
n
_**I never heard such thing and still developing swing apps.
o
Don't give wings to rumors.But as an alternative you can use URL_http://javafx.com/ [JavaFx] or URL_http://www.eclipse.org/swt/ [swt] or URL_http://buoy.sourceforge.net/ [buoy] .
o
In the Netbeans IDE help file, if you search for 'swing' you will find a page titled 'about the swing application framework'.
o
It says: 'The swing application framework (JSR 296) is no longer developed and will not become part of the official java development kit as was originally planned.
o
It is still included in the IDE and you can use this library as it is, but no further development is expected.
o
Blah blah...' It suggests to use the netbeans platform instead (which I suppose answers my question, but I have no idea what the netbeans platform is).
o
@Dean: The application framework was a JSR planned for Java 7, now deferred.
o
It is not Swing, but rather a planned enhancement to make building Swing applications much easier.
o
Oh!
o
I guess I was confused about the whole thing.
n
Thanks for sorting this out for me.
o
That's a very unfortunate name for Swing.
n
Dean isn't the first one here to confuse those two.
n
You probably read something about the 'Swing Application Framework', which while _built using_ Swing, is not 'Swing'.
o
From URL_http://en.wikipedia.org/wiki/Swing_Application_Framework#Status_and_R oadmap [Swing-Application-Framework---Status-and-Roadmap] .
o
Development on an open source Reference Implementation called appframework was begun in 2006.
p
[1] It was originally expected that this implementation would be the means for integrating JSR 296 into the upcoming Java SE 7 (Dolphin) version of the Java programming language, and the project was scheduled to be included in milestone 5 of the JDK7 development.
o
However, in August 2009, it was announced that the project would not be included due to an inability to reconcile design flaws and achieve consensus among the JSR 296 team before the milestone 5 deadline.
o
[2] The original Swing Application Framework implementation has been put on hold indefinitely.
o
[3] The last public release of the appframework project is version 1.03.
o
[1] .
o
But SAF has been forked since that time and still exists under the name "BSAF".
o
The project still seems active nowadays.
o
URL_http://www.eclipse.org/swt/ [The-Standard-Widget-Toolkit] .
o
There is nothing wrong with swing.
n
Personally i don't like SWT.
o
You have to read input-values from widgets and store them in normal variables before a dialog is disposed.
o
If you were using SWT, you can use JFace as well.
p
It provides a set of viewers (model driven) similar to a lot of Swing models.
o
What is the difference between swing and awt?
o
Can some one please explain me what is the difference between swing and awt?
o
Are there any cases where awt is more useful/ advised to use then swing or vice-versa?
o
Related: URL_http://stackoverflow.com/questions/2994304/is-java-swing-still-in - use/2994324#2994324.
o
AWT is a Java interface to native system GUI code present in your OS.
o
It will not work the same on every system, although it tries.
o
Swing is a more-or-less pure-Java GUI.
o
It uses AWT to create an operating system window and then paints pictures of buttons, labels, text, checkboxes, etc., into that window and responds to all of your mouse-clicks, key entries, etc., deciding for itself what to do instead of letting the operating system handle it.
o
Thus Swing is 100% portable and is the same across platforms (although it is skinnable and has a "pluggable look and feel" that can make it look more or less like how the native windows and widgets would look).
p
These are vastly different approaches to GUI toolkits and have a lot of consequences.
o
A full answer to your question would try to explore all of those.
o
:) Here are a couple: AWT is a cross-platform interface, so even though it uses the underlying OS or native GUI toolkit for its functionality, it doesn't provide access to everything that those toolkits can do.
p
Advanced or newer AWT widgets that might exist on one platform might not be supported on another.
o
Features of widgets that aren't the same on every platform might not be supported, or worse, they might work differently on each platform.
n
People used to invest lots of effort to get their AWT applications to work consistently across platforms - for instance, they may try to make calls into native code from Java.
p
Because AWT uses native GUI widgets, your OS knows about them and handles putting them in front of each other, etc., whereas Swing widgets are meaningless pixels within a window from your OS's point of view.
n
Swing itself handles your widgets' layout and stacking.
o
Mixing AWT and Swing is highly unsupported and can lead to ridiculous results, such as native buttons that obscure everything else in the dialog box in which they reside because everything else was created with Swing.
n
Because Swing tries to do everything possible in Java other than the very raw graphics routines provided by a native GUI window, it used to incur quite a performance penalty compared to AWT.
o
This made Swing unfortunately slow to catch on.
n
However, this has shrunk dramatically over the last several years due to more optimized JVMs, faster machines, and (I presume) optimization of the Swing internals.
o
Today a Swing application can run fast enough to be serviceable or even zippy, and almost indistinguishable from an application using native widgets.
p
Some will say it took far too long to get to this point, but most will say that it is well worth it.
p
Finally, you might also want to check out SWT (the GUI toolkit used for Eclipse, and an alternative to both AWT and Swing), which is somewhat of a return to the AWT idea of accessing native Widgets through Java.
o
:) .. please check my edited question.
o