Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » No UI at runtime
No UI at runtime [message #73008] Sun, 28 November 2004 21:29 Go to next message
Eclipse UserFriend
Originally posted by: jupiter49antiSPam.msn.com

Hi, I'm new to VE and the Java platform and am having trouble getting my
frame (with panel and button) to display when I run a simple Java App
project. No clue! Main executes, but no UI components seem to execute.

I tried putting a method breakpoint on "private JFrame getJFrame()" but the
debugger ignores it, so I don't know if I'm asking the debugger to do
something it can't do, or if there's a code problem of some type.

Shouldn't the JFrame and components just display or am I missing some
configuration issue?

Versions:
jdk1.4.2
eclipse 3.0.1
jre1.4.1_03
Re: No UI at runtime [message #73044 is a reply to message #73008] Mon, 29 November 2004 01:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.nospam.gmail.com

Hi Paul,

Did you write any code within your main() method to call the getJFrame()
method? The VE doesn't write the main() method for you when working
with Swing because usually there's more to starting up an application
than simply opening the JFrame. Using Run As->Java Bean we allow you to
test out your visual classes without having to write a main() method.

- Jeff

PaulL wrote:
> Hi, I'm new to VE and the Java platform and am having trouble getting my
> frame (with panel and button) to display when I run a simple Java App
> project. No clue! Main executes, but no UI components seem to execute.
>
> I tried putting a method breakpoint on "private JFrame getJFrame()" but the
> debugger ignores it, so I don't know if I'm asking the debugger to do
> something it can't do, or if there's a code problem of some type.
>
> Shouldn't the JFrame and components just display or am I missing some
> configuration issue?
>
> Versions:
> jdk1.4.2
> eclipse 3.0.1
> jre1.4.1_03
>
>
>
Re: No UI at runtime [message #73061 is a reply to message #73044] Mon, 29 November 2004 02:15 Go to previous message
Eclipse UserFriend
Originally posted by: jupiter49antiSPam.msn.com

"Jeff Myers" <myersj@nospam.gmail.com> wrote in message
news:codup8$c4j$1@www.eclipse.org...
> Hi Paul,
>
> Did you write any code within your main() method to call the getJFrame()
> method? The VE doesn't write the main() method for you when working
> with Swing because usually there's more to starting up an application
> than simply opening the JFrame. Using Run As->Java Bean we allow you to
> test out your visual classes without having to write a main() method.
>
> - Jeff
>

Jeff,
No, I only tried a static call to getJFrame() and it predictably (I'm now
realizing why) complained about the method not being static. So that's my
problem. I have to now catch up with how you guys do this because I'm not
used to instantiating an instance of a class that I'm already in order to
run its private methods. I shoulda known when I saw the compiler error.

This is obviously not a VE or IDE problem, so thanks for steering me in the
right direction. Paul
Re: No UI at runtime [message #603450 is a reply to message #73008] Mon, 29 November 2004 01:42 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 396
Registered: July 2009
Senior Member
Hi Paul,

Did you write any code within your main() method to call the getJFrame()
method? The VE doesn't write the main() method for you when working
with Swing because usually there's more to starting up an application
than simply opening the JFrame. Using Run As->Java Bean we allow you to
test out your visual classes without having to write a main() method.

- Jeff

PaulL wrote:
> Hi, I'm new to VE and the Java platform and am having trouble getting my
> frame (with panel and button) to display when I run a simple Java App
> project. No clue! Main executes, but no UI components seem to execute.
>
> I tried putting a method breakpoint on "private JFrame getJFrame()" but the
> debugger ignores it, so I don't know if I'm asking the debugger to do
> something it can't do, or if there's a code problem of some type.
>
> Shouldn't the JFrame and components just display or am I missing some
> configuration issue?
>
> Versions:
> jdk1.4.2
> eclipse 3.0.1
> jre1.4.1_03
>
>
>
Re: No UI at runtime [message #603457 is a reply to message #73044] Mon, 29 November 2004 02:15 Go to previous message
Eclipse UserFriend
Originally posted by: jupiter49antiSPam.msn.com

"Jeff Myers" <myersj@nospam.gmail.com> wrote in message
news:codup8$c4j$1@www.eclipse.org...
> Hi Paul,
>
> Did you write any code within your main() method to call the getJFrame()
> method? The VE doesn't write the main() method for you when working
> with Swing because usually there's more to starting up an application
> than simply opening the JFrame. Using Run As->Java Bean we allow you to
> test out your visual classes without having to write a main() method.
>
> - Jeff
>

Jeff,
No, I only tried a static call to getJFrame() and it predictably (I'm now
realizing why) complained about the method not being static. So that's my
problem. I have to now catch up with how you guys do this because I'm not
used to instantiating an instance of a class that I'm already in order to
run its private methods. I shoulda known when I saw the compiler error.

This is obviously not a VE or IDE problem, so thanks for steering me in the
right direction. Paul
Previous Topic:No UI at runtime
Next Topic:Some kKeycode for Collapse All ???
Goto Forum:
  


Current Time: Tue Apr 23 12:12:37 GMT 2024

Powered by FUDForum. Page generated in 0.04152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top