Question about Sun Compilers & Programming Tools

1 Answer

What is swing components? - Sun Compilers & Programming Tools

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Hot-Shot:

    An expert who has answered 20 questions.

    Corporal:

    An expert that has over 10 points.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 32 Answers

Swing is java library that provides basic GUI controls [also called widgets like buttons, checkboxes, labels, menus, etc.. You can use it to create a interactive application with nice interface.

More info here http://en.wikipedia.org/wiki/Swing_(Java)

Posted on Oct 12, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Why it really essence to have microwave oven?


To fully grasp the taste of the mentioned household accessory, it is actually required to be Aware of The notion so it takes advantage of to cook food. Initial of all the, all of the these microwave ovens are really operational via a temperature known as microwave radiation which employs amount of frequency nearly all of the effort. The common components of our devices normally contain a humidity sensor, a turntable who is rotating, digital clock as well as control keypad. Apart from these components, a vacuum tube known because a Magnetron is additionally incorporated our ovens along with a control circuit as well as some sort of enclosure in which the cooking of food takes place.
http://microwavesovens.org/

Nov 24, 2012 | Sun Java Programming Language (cdj-275)

1 Answer

Wirte a pogram in java using for loop,that will print out the first 1 numbers of a fibonacii series that is:1 1 2 3 5 13 21 34 55


package com.gpt;

import javax.swing.JOptionPane;

/*
This program computes Fibonacci numbers using a recursive
method.
*/
public class Fibonacci
{
public static void main(String[] args)
{
String input = JOptionPane.showInputDialog("Enter n: ");
int n = Integer.parseInt(input);

for (int i = 1; i {
int f = fib(i);
System.out.println("fib(" + i + ") = " + f);
}
System.exit(0);

}

/**
Computes a Fibonacci number.
@param n an integer
@return the nth Fibonacci number
*/
public static int fib(int n)
{
if (n return 1;
else
return fib(n - 1) + fib(n - 2);
}
}

Feb 24, 2011 | Sun Java Programming Language (cdj-275)

2 Answers

What is .net? what are the types?


Hi,
.net is a platform which is used for creating standalone and web application. It is Microsoft technology and competitor of Java. .net is not a language but a framework and supports many languages. It supports around 37 languages. But mostly CSharp and vb.net is used for developing the application. Microsoft Visual Studio is used for developing .net applications.
Regards, polysandy

May 31, 2010 | Microsoft ASP.NET Programming with MS...

1 Answer

How to convert a Java Desktop application to Web-based?


1. No, it will take lots of code changes
2. Maybe
3. That depends on what its functions are
4. You may not have to convert it at all
5. Maybe, that's your choice

Oct 22, 2009 | Sun Compilers & Programming Tools

2 Answers

LeadTools components' slow initialization


Go into your firewall and anti virus settings and make sure that this program is allowed.
Alot of times the firewall, anti-virus or spyware programs can really slow a program down.
Good luck

May 20, 2009 | LEAD Technologies LEADTOOLS Raster Imaging...

1 Answer

I created a table using swing components but when i close the window the data enered are lost...how to get the data entered in the table ?or how to store?


hi dear,

the data you are entering stores in a temporay memory( ram in this case), which lost when you close your application.

> if you want to store your data so that you can again access it, you will have to store data in a DATABASE(by using jdbc) or in a file(simpler)

try this link
http://bytes.com/topic/java/answers/856588-saving-jtable-data

Apr 20, 2009 | ArcMedia JavaScript Source Code 3000 Pro...

2 Answers

I want to know how various forms are interconnected


Here is an example of HTML And Javascript:

<HTML>
<HEADER>
<TITLE>Welcome To My Webpage</TITLE>
</HEADER>
<BODY>
<P><B><H1><U>Welcome To My Webpage</B><H1></U></P>
<script:"type/javascript">
alert("Welcome To My Webpage!");
</script>
</BODY>
</HTML>

Mar 22, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

Table creation via textfields using swings


import java.lang.Object;
import javax.swing.table.DefaultTableModel;


public class tabletest extends javax.swing.JFrame {
String[][] row = null;
String[] title=new String[3];
private int i;


/** Creates new form tabletest */
public tabletest() {
initComponents();
setTitle("table test");
setVisible(true);
System.out.print("NO Database Needed");
title[0]="Name";
title[1]="Desig";
title[2]="id";
}


/*
" In middle of this two source one generated code will be there that will be done by dragging ur fields to ur frame. THIS IS FOR netbeans IDE "
*/

private void b1ActionPerformed(java.awt.event.ActionEvent evt) {
row=new String[4][3];
// TODO add your handling code here:

String s1=t1.getText();
System.out.println(" event 1");
String s2=t2.getText();
System.out.println(" event 2");
int k=Integer.parseInt(t3.getText());
String s3=""+k;
System.out.println(" event 3");
try{
// for(int i=0;i<=2;i++)
row[i][0]=s1;
row[i][1]=s2;
row[i][2]=s3;
i++;

}catch(Exception e){
e.printStackTrace();

}
table.setModel(new DefaultTableModel(row,title));
}

private void b2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

t1.setText("");
t2.setText("");
t3.setText("");

}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new tabletest().setVisible(true);
}
});
}

// Variables declaration - do not modify
private javax.swing.JButton b1;
private javax.swing.JButton b2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JLabel l1;
private javax.swing.JLabel l2;
private javax.swing.JLabel l3;
private javax.swing.JPanel p2;
private javax.swing.JScrollPane scp1;
private javax.swing.JTextField t1;
private javax.swing.JTextField t2;
private javax.swing.JTextField t3;
private javax.swing.JTable table;
// End of variables declaration

}

Mar 13, 2009 | Compilers & Programming Tools

1 Answer

Visual studio instalation problem


just take a look to this site:
http://www.codeproject.com/
you will get your answer there easily.enjoy it!

Feb 23, 2009 | Microsoft Visual Studio® 2005 Professional...

1 Answer

Data mining


Hello, you can find the best open-source implementation of data-mining algorithms here:
http://www.cs.waikato.ac.nz/ml/weka/

You can use the built-in application or embed it in your own code.
Of course it implements several naive bayes algorithms

Mar 20, 2008 | Compilers & Programming Tools

Not finding what you are looking for?
Compilers & Programming Tools Logo

Related Topics:

76 people viewed this question

Ask a Question

Usually answered in minutes!

Top Sun Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18298 Answers

Justin
Justin

Level 3 Expert

2072 Answers

Are you a Sun Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...