[nbusers] No interface is opening with my program??

  • From: "zlloyd1" < >
  • To:
  • Subject: [nbusers] No interface is opening with my program??
  • Date: Wed, 09 Jan 2013 03:57:47 -0500


markiewb wrote:
> Your method which creates the window is never called. 
> A) Rename your "void testnew" to "testNew", so you create a constructor. 
>  


I did this, because I was not sure of the Or underneath it, and I got this 
code:

Code:
import java.awt.event.*;
public class Testnew{    
JComboBox c = new JComboBox();
public void TestNew(){
frame();}
public void frame(){
JFrame f = new JFrame();
f.setVisible(true);
f.setSize(400,400);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel p = new JPanel();
p.add(c);
f.add(p);
p.setVisible(true);}
public static void main(String[] args){
   new Testnew();}}



Which still does not show anything when run?? It compiles and runs just fine, 
with no errors, but nothing is showing still????  [Crying or Very sad]






[nbusers] No interface is opening with my program??

zlloyd1 01/08/2013

[nbusers] Re: No interface is opening with my program??

Benno Markiewicz 01/09/2013

[nbusers] Re: No interface is opening with my program??

Scott 01/09/2013

[nbusers] Re: No interface is opening with my program??

Benno Markiewicz 01/09/2013

[nbusers] No interface is opening with my program??

zlloyd1 01/09/2013

[nbusers] No interface is opening with my program??

bolsover 01/09/2013

[nbusers] Re: No interface is opening with my program??

Bayless Kirtley 01/09/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close