Small help needed in Swing
I have written a small hellow world code in swing....
*import javax.swing.JFrame;*
*import javax.swing.JLabel;*
*public class HelloWorldSwing {*
*public static void main(String[] args) {*
*JFrame frame = new JFrame("HelloWorldSwing");*
*final JLabel label = new JLabel("Hello World");*
*frame.getContentPane().add(label);*
*frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);*
*frame.pack();*
*frame.setVisible(true);*
I've compiled this in a remote server, with the help of this site....
http://www.innovation.ch/java/java_compile.html
I have only JRE1.6.0_03 installed in my machine.....
when I am trying to execute the program by.....
F:>java HelloWorldSwing
it is saying....
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing
Then I tried to run it othe way by html file....
*<html>*
*<applet class="HelloWorldSwing.class" height=200 width=200>*
*</html>*
can any one suggest....what to do to get it running?
um.... how about get the JDK?
Also, please don't try to use a non-applet program as if it were an applet. It won't work.
Also, please go through the Sun Java tutorials, especially the first ones about getting started.
Edited by: Encephalopathic on Feb 26, 2008 9:56 PM
Similar Messages
-
Urgent help need on swing problem
Dear friends,
I met a problem and need urgent help from guru here, I am Swing newbie,
I have following code and hope to draw lines between any two components at RUN-TIME, not at design time
Please throw some skeleton code, Thanks so much!!
code:
package com.swing.test;
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
import javax.swing.event.*;
public class LongguConnectLineCommponent
public static void main(String[] args)
JFrame f = new JFrame("Connecting Lines");
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new ConnectionPanel());
f.setSize(400,300);
f.setLocation(200,200);
f.setVisible(true);
class ConnectionPanel extends JPanel
JLabel label1, label2, label3, label4;
JLabel[] labels;
JLabel selectedLabel;
int cx, cy;
public ConnectionPanel()
setLayout(null);
addLabels();
label1.setBounds( 25, 50, 125, 25);
label2.setBounds(225, 50, 125, 25);
label3.setBounds( 25, 175, 125, 25);
label4.setBounds(225, 175, 125, 25);
determineCenterOfComponents();
ComponentMover mover = new ComponentMover();
addMouseListener(mover);
addMouseMotionListener(mover);
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
Point[] p;
for(int i = 0; i < labels.length; i++)
for(int j = i + 1; j < labels.length; j++)
p = getEndPoints(labels, labels[j]);
//g2.draw(new Line2D.Double(p[0], p[1]));
private Point[] getEndPoints(Component c1, Component c2)
Point
p1 = new Point(),
p2 = new Point();
Rectangle
r1 = c1.getBounds(),
r2 = c2.getBounds();
int direction = r1.outcode(r2.x, r2.y);
switch(direction) // r2 located < direction > of r1
case (Rectangle.OUT_LEFT): // West
p1.x = r1.x;
p1.y = r1.y;
p2.x = r2.x + r2.width;
p2.y = r2.y;
if(r1.y > cy)
p1.y = r1.y + r1.height;
p2.y = r2.y + r2.height;
break;
case (Rectangle.OUT_TOP): // North
p1.x = r1.x;
p1.y = r1.y;
p2.x = r2.x;
p2.y = r2.y + r2.height;
if(r1.x > cx && r2.x > cx)
p1.x = r1.x + r1.width;
p2.x = r2.x + r2.width;
break;
case (Rectangle.OUT_LEFT + Rectangle.OUT_TOP): // NW
p1.x = r1.x;
p1.y = r1.y;
p2.x = r2.x + r2.width;
p2.y = r2.y;
if(r1.y > r2.y + r2.height)
p2.y = r2.y + r2.height;
break;
case (Rectangle.OUT_RIGHT): // East
p1.x = r1.x + r1.width;
p1.y = r1.y;
p2.x = r2.x;
p2.y = r2.y;
if(r1.y > cy)
p1.y = r1.y + r1.height;
p2.y = r2.y + r2.height;
break;
case (Rectangle.OUT_TOP + Rectangle.OUT_RIGHT): // NE
p1.x = r1.x + r1.width;
p1.y = r1.y;
p2.x = r2.x;
p2.y = r2.y;
if(r1.y > cy)
p1.y = r1.y + r1.height;
p2.y = r2.y + r2.height;
if(r1.y > r2.y + r2.height)
p1.y = r1.y;
else
if(r1.y > r2.y + r2.height)
p2.y = r2.y + r2.height;
break;
case (Rectangle.OUT_BOTTOM): // South
p1.x = r1.x;
p1.y = r1.y + r1.height;
p2.x = r2.x;
p2.y = r2.y;
if(r1.x > cx && r2.x > cx)
p1.x = r1.x + r1.width;
p2.x = r2.x + r2.width;
break;
case (Rectangle.OUT_RIGHT + Rectangle.OUT_BOTTOM): // SE
p1.x = r1.x + r1.width;
p1.y = r1.y + r1.height;
p2.x = r2.x;
p2.y = r2.y;
break;
case (Rectangle.OUT_BOTTOM + Rectangle.OUT_LEFT): // SW
p1.x = r1.x;
p1.y = r1.y + r1.height;
p2.x = r2.x;
p2.y = r2.y;
if(r1.x > r2.x + r2.width)
p2.x = r2.x + r2.width;
if(r1.x > cx && r2.x > cx)
p1.x = r1.x + r1.width;
p2.x = r2.x + r2.width;
return new Point[] {p1, p2};
private void determineCenterOfComponents()
int
xMin = Integer.MAX_VALUE,
yMin = Integer.MAX_VALUE,
xMax = 0,
yMax = 0;
for(int i = 0; i < labels.length; i++)
Rectangle r = labels[i].getBounds();
if(r.x < xMin)
xMin = r.x;
if(r.y < yMin)
yMin = r.y;
if(r.x + r.width > xMax)
xMax = r.x + r.width;
if(r.y + r.height > yMax)
yMax = r.y + r.height;
cx = xMin + (xMax - xMin)/2;
cy = yMin + (yMax - yMin)/2;
private class ComponentMover extends MouseInputAdapter
Point offsetP = new Point();
boolean dragging;
public void mousePressed(MouseEvent e)
Point p = e.getPoint();
for(int i = 0; i < labels.length; i++)
Rectangle r = labels[i].getBounds();
if(r.contains(p))
selectedLabel = labels[i];
offsetP.x = p.x - r.x;
offsetP.y = p.y - r.y;
dragging = true;
break;
public void mouseReleased(MouseEvent e)
dragging = false;
public void mouseDragged(MouseEvent e)
if(dragging)
Rectangle r = selectedLabel.getBounds();
r.x = e.getX() - offsetP.x;
r.y = e.getY() - offsetP.y;
selectedLabel.setBounds(r.x, r.y, r.width, r.height);
determineCenterOfComponents();
repaint();
private void addLabels()
label1 = new JLabel("Label 1");
label2 = new JLabel("Label 2");
label3 = new JLabel("Label 3");
label4 = new JLabel("Label 4");
labels = new JLabel[] {
label1, label2, label3, label4
for(int i = 0; i < labels.length; i++)
labels[i].setHorizontalAlignment(SwingConstants.CENTER);
labels[i].setBorder(BorderFactory.createEtchedBorder());
add(labels[i]);If you need some help, be respectful of the forum rules and people will help. By using "urgent" in the title and bumping your message every 2 hours you're just asking to be ignored (which is what you ended up with).
-
HI friends,
I have a GUI with 4 paem nels .On one panel ..i have a menu item
called "Create" when i click it an oval will be drawn on a canvas.
And i have the Buttons on the other panel .
I need to drag these buttons and drop them into the ovals.
Can any one help me wih the drag and drop functionality using swing.
Thanks in avanceDid you know there is a Swing forum where you can post Swing questions?
http://forum.java.sun.com/forum.jspa?forumID=57
If you do repost this there, please put a link in this thread to direct interested people to the new post.
I don't know anything about how to do drag-and-drop in Swing, so I can't help you directly with that. Good luck! -
Help needed in swing!urgently!
Hi im new to java envirnoment.Im working on a project,i need to design a tutorial page.
How do i write a program for asking user to input values for a matrix form? how to i design the page for this?
How do i invoke a Japplet?Is it the same procedure as a awt applet?For awt applet,a html file is written inorder to invoke the program. so how about Japplets or more generally for swing components?
Is there any reference for new users in the designing of user interface components.I need to bulid a simple one,with buttons,scroll.
Anyone knows how to plot line graphs??Have a loo at the Java Tutorial:
http://java.sun.com/docs/books/tutorial/
and the Book "Java Look and Feel Design Guidelines":
http://java.sun.com/products/jlf/ed2/book/index.html
-Puce -
Help needed with swings for socket Programming
Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good look to my programs..using swings but im very new to swings...so can anyone help me with some examples involving swings with socket programming...any reference...any help would be appreciated...please help im running out of time..
thanking u in advance
anDyhi im Anand(AnDY),
i hav lost my AnDY account..plz reply to this topic keeping me in mind :p -
Small Help Needed in JFileChooser
I've a small problem in using JFileChooser.
I want to disable the doubleclick option if chosen is a file and enable if it is a folder
or
i want both the properties of singleclick and doubleclick to be same.
i.e, if it is a folder as it gets inside the folder. incase of file it shudn't do anything (filechooser shudn't get closed). But as of now the file chooser is getting closed on double click on a file and it returns the selected file's name when i printed using chooser.getSelectedFile(). what i want now is, the filechooser shudn't return anything until i click the open button on the filechooser window.
Can someone help me out in terlling me how to do this
TIAum.... how about get the JDK?
Also, please don't try to use a non-applet program as if it were an applet. It won't work.
Also, please go through the Sun Java tutorials, especially the first ones about getting started.
Edited by: Encephalopathic on Feb 26, 2008 9:56 PM -
hi,
Hi, .
I have created a Jmenu called " Menu System Test window " and it contains toplevel menu item "File" and File Menu contains subitems "Product Evaluation" and "Exit".
When i click File->Product Evaluation it displays a new Frame named "ProductEvaluationMeasurementTool" with some check boxes ,radiobuttons, buttons . Everything is ok with my code.
My question is now i want to convert my application into applet ( at present it is written using swing and AWT).
Can anyone tell me is it possible to converty my code into applet so that i can place it in a web page
i am sending my code..
Thanks in advance
import java.awt.*;
import java.awt.event.*;
import java.awt.Component;
import java.awt.Checkbox;
import javax.swing.*;
import java.text.DecimalFormat;
// Make a main window with a top-level menu: File
public class MainWindow extends JFrame {
public MainWindow() {
super("Menu System Test Window");
setSize(500, 500);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
JMenuBar mb = new JMenuBar();
mb.add(fileMenu);
setJMenuBar(mb);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
dispose(); // tell windowing system to free resources
System.exit(0); // exit
public static void main(String args[]) {
MainWindow w = new MainWindow();
w.setVisible(true);
private static MainWindow w ;
// Encapsulate the look and behavior of the File menu
class FileMenu extends JMenu implements ActionListener {
private MainWindow mw; // who owns us?
private JMenuItem itmPE = new JMenuItem("ProductEvaluation");
private JMenuItem itmExit = new JMenuItem("Exit");
public FileMenu(MainWindow main)
super("File");
this.mw = main;
this.itmPE.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itmPE);
this.add(this.itmExit);
// respond to the Exit menu choice
public void actionPerformed(ActionEvent e)
if (e.getSource() == this.itmPE)
Frame f1 = new Frame("ProductMeasurementEvaluationTool");
f1.setSize(1290,1290);
f1.setLayout(null);
Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
l1.setBounds(380, 50, 380, 20);
f1.add(l1);
Label l2 = new Label("Architecture Metrics");
l2.setBounds(170, 100, 110, 20);
f1.add(l2);
Label l3 = new Label("RunTime Metrics");
l3.setBounds(500, 100, 110, 20);
f1.add(l3);
Label l4 = new Label("Documentation Metrics");
l4.setBounds(840, 100, 130, 20);
f1.add(l4);
JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
rb1.setBounds(190, 140, 133, 20);
f1.add(rb1);
JRadioButton rb2 = new JRadioButton("Task Metrics",false);
rb2.setBounds(540, 140, 95, 20);
f1.add(rb2);
JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
rb3.setBounds(870, 140, 108, 20);
f1.add(rb3);
JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
rb4.setBounds(190, 270, 142, 20);
f1.add(rb4);
JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
rb6.setBounds(540, 270, 142, 20);
f1.add(rb6);
JRadioButton rb8 = new JRadioButton("Development Metrics",false);
rb8.setBounds(870, 270, 141, 20);
f1.add(rb8);
Checkbox c10 = new Checkbox("Size");
c10.setBounds(220, 170, 49, 20);
f1.add(c10);
Checkbox c11 = new Checkbox("Structure");
c11.setBounds(220, 190, 75, 20);
f1.add(c11);
Checkbox c12 = new Checkbox("Complexity");
c12.setBounds(220, 210, 86, 20);
f1.add(c12);
Checkbox c13 = new Checkbox("Size");
c13.setBounds(220, 300, 49, 20);
f1.add(c13);
Checkbox c14 = new Checkbox("Structure");
c14.setBounds(220, 320, 75, 20);
f1.add(c14);
Checkbox c15 = new Checkbox("Complexity");
c15.setBounds(220, 340, 86, 20);
f1.add(c15);
Checkbox c19 = new Checkbox("Size");
c19.setBounds(580, 170, 49, 20);
f1.add(c19);
Checkbox c20 = new Checkbox("Structure");
c20.setBounds(580, 190, 75, 20);
f1.add(c20);
Checkbox c21 = new Checkbox("Complexity");
c21.setBounds(580, 210, 86, 20);
f1.add(c21);
Checkbox c22 = new Checkbox("Size");
c22.setBounds(580, 300, 49, 20);
f1.add(c22);
Checkbox c23 = new Checkbox("Structure");
c23.setBounds(580, 320, 75, 20);
f1.add(c23);
Checkbox c24 = new Checkbox("Complexity");
c24.setBounds(580, 340, 86, 20);
f1.add(c24);
Checkbox c28 = new Checkbox("Size");
c28.setBounds(920, 170, 49, 20);
f1.add(c28);
Checkbox c29 = new Checkbox("Structure");
c29.setBounds(920, 190, 75, 20);
f1.add(c29);
Checkbox c30 = new Checkbox("Complexity");
c30.setBounds(920, 210, 86, 20);
f1.add(c30);
Checkbox c31 = new Checkbox("Size");
c31.setBounds(920, 300, 49, 20);
f1.add(c31);
Checkbox c32 = new Checkbox("Structure");
c32.setBounds(920, 320, 75, 20);
f1.add(c32);
Checkbox c33 = new Checkbox("Complexity");
c33.setBounds(920, 340, 86, 20);
f1.add(c33);
JButton b1 = new JButton("Button1");
b1.setBounds(230, 600, 120, 24);
f1.add(b1);
JButton b2 = new JButton("Button2");
b2.setBounds(430, 600, 120, 24);
f1.add(b2);
JButton b3 = new JButton("Button3");
b3.setBounds(630, 600, 120, 24);
f1.add(b3);
JButton b4 = new JButton("Button4");
b4.setBounds(840, 600, 120, 24);
f1.add(b4);
f1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
System.exit(0);
f1.setVisible(true);
else
{ mw.exit();}The other thinks you needed depends upon your application
i changed ur code to an applet program(a 2 min. job)
please try it:
import java.awt.*;
import java.awt.event.*;
import java.awt.Component;
import java.awt.Checkbox;
import javax.swing.*;
import java.text.DecimalFormat;
//<APPLET CODE="MainWindow3.class" WIDTH=625 HEIGHT=500></APPLET>
// Make a main window with a top-level menu: File
public class MainWindow3 extends JApplet {
public void init() {
//setSize(500, 500);
// make a top level File menu
FileMenu fileMenu = new FileMenu(this);
// make a menu bar for this frame
// and add top level menus File and Menu
JMenuBar mb = new JMenuBar();
mb.add(fileMenu);
setJMenuBar(mb);
setVisible(true);
/*addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
exit();
public void exit() {
setVisible(false); // hide the Frame
//dispose(); // tell windowing system to free resources
stop();
setVisible(false);
destroy();
//System.exit(0); // exit
/* public static void main(String args[]) {
MainWindow3 w = new M();
w.setVisible(true);
private static MainWindow3 w ;
// Encapsulate the look and behavior of the File menu
class FileMenu extends JMenu implements ActionListener {
private MainWindow3 mw; // who owns us?
private JMenuItem itmPE = new JMenuItem("ProductEvaluation");
private JMenuItem itmExit = new JMenuItem("Exit");
public FileMenu(MainWindow3 main)
super("File");
this.mw = main;
this.itmPE.addActionListener(this);
this.itmExit.addActionListener(this);
this.add(this.itmPE);
this.add(this.itmExit);
// respond to the Exit menu choice
public void actionPerformed(ActionEvent e)
if (e.getSource() == this.itmPE)
JFrame f1 = new JFrame("ProductMeasurementEvaluationTool");
f1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
f1.setSize(1290,1290);
f1.setLayout(null);
Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
l1.setBounds(380, 50, 380, 20);
f1.add(l1);
Label l2 = new Label("Architecture Metrics");
l2.setBounds(170, 100, 110, 20);
f1.add(l2);
Label l3 = new Label("RunTime Metrics");
l3.setBounds(500, 100, 110, 20);
f1.add(l3);
Label l4 = new Label("Documentation Metrics");
l4.setBounds(840, 100, 130, 20);
f1.add(l4);
JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
rb1.setBounds(190, 140, 133, 20);
f1.add(rb1);
JRadioButton rb2 = new JRadioButton("Task Metrics",false);
rb2.setBounds(540, 140, 95, 20);
f1.add(rb2);
JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
rb3.setBounds(870, 140, 108, 20);
f1.add(rb3);
JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
rb4.setBounds(190, 270, 142, 20);
f1.add(rb4);
JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
rb6.setBounds(540, 270, 142, 20);
f1.add(rb6);
JRadioButton rb8 = new JRadioButton("Development Metrics",false);
rb8.setBounds(870, 270, 141, 20);
f1.add(rb8);
Checkbox c10 = new Checkbox("Size");
c10.setBounds(220, 170, 49, 20);
f1.add(c10);
Checkbox c11 = new Checkbox("Structure");
c11.setBounds(220, 190, 75, 20);
f1.add(c11);
Checkbox c12 = new Checkbox("Complexity");
c12.setBounds(220, 210, 86, 20);
f1.add(c12);
Checkbox c13 = new Checkbox("Size");
c13.setBounds(220, 300, 49, 20);
f1.add(c13);
Checkbox c14 = new Checkbox("Structure");
c14.setBounds(220, 320, 75, 20);
f1.add(c14);
Checkbox c15 = new Checkbox("Complexity");
c15.setBounds(220, 340, 86, 20);
f1.add(c15);
Checkbox c19 = new Checkbox("Size");
c19.setBounds(580, 170, 49, 20);
f1.add(c19);
Checkbox c20 = new Checkbox("Structure");
c20.setBounds(580, 190, 75, 20);
f1.add(c20);
Checkbox c21 = new Checkbox("Complexity");
c21.setBounds(580, 210, 86, 20);
f1.add(c21);
Checkbox c22 = new Checkbox("Size");
c22.setBounds(580, 300, 49, 20);
f1.add(c22);
Checkbox c23 = new Checkbox("Structure");
c23.setBounds(580, 320, 75, 20);
f1.add(c23);
Checkbox c24 = new Checkbox("Complexity");
c24.setBounds(580, 340, 86, 20);
f1.add(c24);
Checkbox c28 = new Checkbox("Size");
c28.setBounds(920, 170, 49, 20);
f1.add(c28);
Checkbox c29 = new Checkbox("Structure");
c29.setBounds(920, 190, 75, 20);
f1.add(c29);
Checkbox c30 = new Checkbox("Complexity");
c30.setBounds(920, 210, 86, 20);
f1.add(c30);
Checkbox c31 = new Checkbox("Size");
c31.setBounds(920, 300, 49, 20);
f1.add(c31);
Checkbox c32 = new Checkbox("Structure");
c32.setBounds(920, 320, 75, 20);
f1.add(c32);
Checkbox c33 = new Checkbox("Complexity");
c33.setBounds(920, 340, 86, 20);
f1.add(c33);
JButton b1 = new JButton("Button1");
b1.setBounds(230, 600, 120, 24);
f1.add(b1);
JButton b2 = new JButton("Button2");
b2.setBounds(430, 600, 120, 24);
f1.add(b2);
JButton b3 = new JButton("Button3");
b3.setBounds(630, 600, 120, 24);
f1.add(b3);
JButton b4 = new JButton("Button4");
b4.setBounds(840, 600, 120, 24);
f1.add(b4);
f1.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e)
{ mw.destroy();
//System.exit(1);
f1.setVisible(true);
else
{ mw.exit();}
If this program is a demo one then, no problem if it is a live & more important one. It is not OK!. It need more professional............ -
hello
does anyone know why i get this error when im trying to publish?i did a frensh windows instal ,seted up flash cs5,5 with 2.7 sdk,and now when i try to publish i get this error.Its a small app that plays some videos,before i could publish it without problems.Hi,
In order to compile properly in Flash CS5.5, it's more than just overlaying the SDK. There are other template files that need to be updated in order for it to work.
I've posted a video on how to overlay the SDK on Windows here: http://youtu.be/ODXp3-K9VJU I've also got a video on how to do it on Mac (look for it on my channel).
iBrent -
HELP NEEDED: FIRST SWING AT ECOMMERCE
Im doing a site for a catering company and I need to get my
hands on some tools that would be useful for building the ecommerce
part. I havnt really done that much with ecommerce and the company
wants nothing to do with paypal. They want orders to be sent via
email to both the company and the customer as well (basically as a
confirmation) . Any help getting pointed in the right direction
would be amazing!
thanksI second the nomination for cartweaver
In addition to ease of customization and good company
support,
there is a fairly active newgroup-based user community as
well.
"JetCityKid(WA)" <[email protected]> wrote
in message
news:fnmo5l$a81$[email protected]..
> Im doing a site for a catering company and I need to get
my hands on some
> tools
> that would be useful for building the ecommerce part. I
havnt really done
> that
> much with ecommerce and the company wants nothing to do
with paypal. They
> want
> orders to be sent via email to both the company and the
customer as well
> (basically as a confirmation) . Any help getting pointed
in the right
> direction
> would be amazing!
>
> thanks
> -
i have a frame which contains a number of internal frames these internal frames contains jtable .my probem is that i need to update the cell data of on jtable upon pop action and then display that data upon another internal frames jtable .
my actual problem is that i have a frame which contains may internal frames these internal frames contains jtable.now what i wans to do is suppose i do popup ipon any internal frames jtables cell then a popup menu comes which has a textbox and a ok button when i click ok then that integer values goes into the databse and at the same time this particular value get dis[layed upon another internal frames jtable.
-
Help needed-regarding swing component and linux
Hi
I am trying to run java program on Linux machine which doesn't have GUI support. Due to that following exception is throwing,
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at org.jfree.ui.ApplicationFrame.<init>(ApplicationFrame.java:66)
at ismschart.AbstractIsmsChart.<init>(AbstractIsmsChart.java:82)
at ismschart.CHART_DAILY_PEAK_ACTIVITY.<init>(CHART_DAILY_PEAK_ACTIVITY.java:56)
at ismschart.jChartTbl.createIsmsChart(jChartTbl.java:197)
at ismschart.jChartTbl.main(jChartTbl.java:98)
Can any one tell me, How to overcome this?
Is there any tool which provides UI support for Linux?
Thnaks
-Ravicut and paste from API
Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
environment issue -
Small help needed with swf in flash CS6!
Hey everyone! I have a question I’d like to ask, and just wanted to point out a few things. I’m not very advanced with flash software, so I don’t know too much about it. My question was, if it would be possible to take an swf animation- (One that’s already been uploaded on the internet) Put it into Flash CS6, and possibly just change the music that is playing in that flash animation. So that when it’s all done, the animation plays just as it did originally, but with the new track of music that has been put into it.
Any support would be amazing! Thank you!It depends how the sound is used in the swf file. If the sound is streamed from a file on a server, you will most likely get errors when trying to import it in your own library. It also depends on which ActionScript it uses (1,2 & 3). If you drag the swf on the stage of your fla any tweens in it will be converted to keyframes and you will lose traditional (timeline-embedded sound) anyway.
-
Hi,
I need small help in sql*loader.I get data-files which has a particular identified on the 1st record( header ), based on which I've to load a constant for the 1st column of every row. How do I set in the control file.
Appreciate if someone can give me directions on this.
Thanks in advance,Hi again!
I hope that a little shell script will do the thing for you.
1.) Create the following BASH-Script
#!/bin/bash
export CUSTNO=""
export CUSTNO=$(awk -F"," '{print NR " " $3}' datafile.csv | grep 1 | cut -d" " -f2)
sed -i 's/#x#/'$CUSTNO'/g' controlfile.datI've use datafile.csv as the name of the datafile to load and controlfile.dat as the name of your controlfile. Please change this to fit your needs.
This script looks for the occurrence of your constant value and stores this value in the variable CUSTNO. Then it look for a string #x# in your controlfile and changes #x# to the value of CUSTNO.
So in your controlfile there should be a line for custno like that:
custno CONSTANT '#x#'This line will be replace in your example to:
custno CONSTANT '35642'To get this to work I assume that:
1.) Your constant value is always at the third position in the header of your datafile.
2.) You've made the change with #x# in your controlfile.
I hope that this is really usefull to you.
Best Regards
Florian W. -
I cannot configure yahoo small business after upgrading to Mavericks Help needed
Hi Guys,
it is as simple as that:
I cannot configure yahoo small business after upgrading to Mavericks Help needed
ThanksPlease read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
ferst this is my pc
4.09.00.0904 (DirectX 9.0c) ante-HA0X2NT8F0 : CPU الـ Intel Pentium 4 530, 3033 MHz (15 x 202) MSI 848P Neo-V (MS-6788) (5 PCI, 1 AGP, 2 DDR DIMM, Audio) Intel Breeds Hill i848P ram512 mb(DDR SDRAM) BIOS نوع الـ AMI (11/29/04) Communications Port (COM1) ECP Printer Port (LPT1) RADEON 9250 - Secondary (128 mb) RADEON 9250 (128 mb) ATI Radeon 9250 (RV280) Plug and Play Monitor [NoDB] (105169121) : sound cart Intel 82801EB ICH5 - AC'97 Audio Controller
: IDE Standard Dual Channel PCI IDE Controller Floppy disk drive HDS728080PLAT20 (قب 80, 7200 RPM, Ultra-ATA/133) CD-ROM Drive SMART
now
1-my pc restart it self after 4 or 5 h....
no cbu hot
no fan error cut i test all
2-i wanna get update all driver
i try with the msi brogram and that brogram give me an old v. :((
3-is my pc (top)(good)(strong) if not i will buy new msi one only tell me
waitingwhen take look thare i see 12v_____
euer-power tx 12v
pl-350 8a 5a max 200w (isthat good )?
hi Din
let me ask how i can do this ?(memtest )????
pls i wanna small help and i wanna know >is my pc good or bad cuz it cust me mush
and all my pc from MSI !.
HI Ralphdb
(((Do you know what temp your Cpu is running)))) no i dont know that i am not professional in pc hard..so pls be soft with me and explain ...
Maybe you are looking for
-
ok last night I dropped my Ipod nano 4th gen without a case on my tile floor. It was about a 3-4 feet drop. So today I was running and than after a couple mins of running with the song still playing my ipod buttons froze, nothing worked the screen re
-
Calling stored procedure with XML XSU
Hi Guys, I am using XML SQL Utility api for inserting xml data in to oracle database.Now my requirement is I have to return inserted record sequence value(i.e primary key) back and have to resend it to insert child table data as a foreign key.We can
-
Interactive report Group By functions support Number
Dear All, I developed an interactive report that retrives its data from a package. Now i want to use a group by and use Max function.Since my columns' types are STRING, I cant use Max function.Does anyone know any solution for that? MAny thanks in ad
-
Message Mapping And Interface Mapping
Hi, I have 2 software components. One is for sender and one is for receiver.I have created all the Data types,Message type and Message Interface fro sender in the first Software component and data types ,message type ,message interface for the receiv
-
Best way to add inst. drivers when building an .exe?
Hello, I am finally at the stage of building an executable out of my project. I'm using a HAL and as a consequence the build script doesn't include everything in my project. I figured out how to get the classes into the build, but I can't seem to add