Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Monday, May 10, 2010

Nokia Picks Latest Symbian OS for N8 Smartphone


Nokia is using the latest open-source Symbian operating system for its new N8 smartphone. The Symbian Foundation praised Symbian^3 on Nokia's N8, but an analyst said S^3 has a interface similar to Nokia's S60 touchscreen smartphones without the problems. The latest Symbian OS is faster and supports gestures and HDMI connections to TVs.

Research In Motion is aiming to steal the smartphone spotlight with its device and operating-system Relevant Products/Services announcements at the BlackBerry WES 2010 conference Relevant Products/Services in Orlando this week, but the Symbian Foundation is working to turn some heads with a strategic announcement of its own.

On Tuesday, the foundation announced that Nokia has chosen Symbian^3 to power its new Nokia N8 smartphone. That makes Nokia the first handset manufacturer to tap S^3, Symbian's first platform release following its transition to open source in February.

Lee Williams, executive director of the foundation, said the Nokia N8 is an example of what's possible with the latest version of the Symbian platform. But Avi Greengart, an analyst at Current Analysis, isn't overly excited about the new operating system.

"Symbian 3 is fundamentally the same user interface that Nokia's S60 touchscreen phones offered, only it works. There isn't the inconsistency and the lagging," Greengart said. "Today's S60 touchscreen phones can drive you mad. Sometimes you need to press once and sometimes you have to press twice."

Getting to Know S^3

The S^3 offers usability and interface advances, faster networking Relevant Products/Services, acceleration for 2-D and 3-D graphics in games and applications, HDMI support, music-store integration Relevant Products/Services, an improved user interface with easier navigation and multi-touch gesture support, a feature-rich home screen, and the ability to run even more applications simultaneously.

Improvements to the user interface include direct "single tap" interaction that aims to make it much easier to complete common tasks. Multi-touch support for gestures such as pinch-to-zoom forms the foundation of a gesture framework that Symbian said can be extended and leveraged by developers.

The home screen offers support for multiple pages of widgets and a flick gesture to move between them. And one-click connectivity Relevant Products/Services for all applications works to simplify the process of connecting to the Internet.

HDMI support lets users plug their phone into a TV and watch a high-definition movie at 1080p quality without a Blu-ray player. And the music-store integration in the radio enables users to identify a song and learn more about it, while a "buy now" button links with the user's chosen music store for a quick purchase.

Behind Competitors

Symbian said the Nokia N8 takes full advantage of the S^3 platform with multiple, personalized home screens, a faster and more responsive user interface, and more efficient memory management to offer faster multitasking . But Greengart said it still doesn't compare to the leading competitors.

"The S^3 offers a familiar experience for someone who has grown up with the S60 on other Nokia phones, but the S^3 works more effectively for touchscreens," Greengart said. "The S^3 doesn't catch Nokia up to its rivals in terms of providing a user experience that was designed from the outset for touch. And in that respect it still badly lags Apple, Palm and Nokia."

Wednesday, February 20, 2008

Making a GUI in JAVA


Here in this tutorial you will be showed how to make a GUI in JAVA ...i.e.. how to make frames, panels, buttons and how to display dialog boxes.



The 2 most important things you will need :--
  • Basic knowledge of JAVA.
  • A JAVA compiler (like BlueJ or Eclipse)
Now just follow these steps:
  1. A JAVA GUI Program should be designed like the diagram below (at least it's what I think): - main() - Frame -- Content Panel --- Buttons --- Text Areas --- Menus --- and so on
  2. Import some important files. import java.awt.*; import java.awt.event.*; import javax.swing.*;
  3. Create a new class, extend it to ActionListener and create the main Method. public class HelloGui implements ActionListener { public static void main(String[] args) { } }
  4. Under the main method create an instance of the class itself. HelloGui myProgram = new HelloGui();
  5. Create buttons and attach action listeners. JButton ladiesButton = new JButton("Ladies"); ladiesButton.setActionCommand("clickfromLadies"); ladiesButton.addActionListener(myProgram); JButton gentsButton = new JButton("Gents"); gentsButton.setActionCommand("clickfromGents"); gentsButton.addActionListener(myProgram);
  6. Create an instance of the JPanel JPanel contentPanel = new JPanel(new GridLayout(0, 1));
  7. Add the created buttons in the content panel and create a window/frame. contentPanel.add(ladiesButton); contentPanel.add(gentsButton);
  8. Create an instance of the JFrame to give your GUI Program a window. JFrame mainWindow = new JFrame("Hello Java GUI Program by Rooseveltrp.com");
  9. Add the content pane in the window. Rebuild the window and then display it. mainWindow.getContentPane().add(contentPanel); mainWindow.pack(); mainWindow.setVisible(true);
  10. Create a new method called public void actionPerformed(ActionEvent e).
  11. Inside the method actionPerformed enter the following codes to control the clicks from your button. public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("clickfromLadies")) { JOptionPane.showMessageDialog(null, "Roosevelt Loves Ladies!"); } else if(e.getActionCommand().equals("clickfromGents")) { JOptionPane.showMessageDialog(null, "Honestly, Roosevelt doesn't care about men!"); } }
  12. If you've done everything well your codes will look just like below: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HelloGui implements ActionListener { public static void main(String[] args) { HelloGui myProgram = new HelloGui(); JButton ladiesButton = new JButton("Ladies"); ladiesButton.setActionCommand("clickfromLadies"); ladiesButton.addActionListener(myProgram); JButton gentsButton = new JButton("Gents"); gentsButton.setActionCommand("clickfromGents"); gentsButton.addActionListener(myProgram); JPanel contentPanel = new JPanel(new GridLayout(0, 1)); contentPanel.add(ladiesButton); contentPanel.add(gentsButton); JFrame mainWindow = new JFrame("Hello Java GUI Program by Rooseveltrp.com"); mainWindow.getContentPane().add(contentPanel); mainWindow.pack(); mainWindow.setVisible(true); } public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals("clickfromLadies")) { JOptionPane.showMessageDialog(null, "Roosevelt Loves Ladies!"); } else if(e.getActionCommand().equals("clickfromGents")) { JOptionPane.showMessageDialog(null, "Honestly, Roosevelt doesn't care about men!"); } } }
  13. Program should output the following results.