This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Visual Java Beans don't show up

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been trying in vain to view a visual javabean that I created (which extends from a JComponent)inside a JBuilder?
Can someone help me in this area.What other tools can i use to view my java beans - other than BeanBox?
Thankyou.
Ruby
 
Ruby Shaji
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again, I am just posting the sample code below.
In my case the ShapeComponent is a JComponent.
public class FillAttributeSampleShape extends ShapeComponent implements Serializable
{
private Color colorB = Color.red
private DefaultGisGraphicContext graphicContext;
/**
* Constructor for the LineAttributeSampleShape object
*/
public FillAttributeSampleShape()
{
super();
graphicContext = new DefaultGisGraphicContext();
();
GeneralPath shape = new ClosedGeneralPath( java.awt.geom.GeneralPath.WIND_EVEN_ODD, 5 );
shape.append( new Rectangle( 0, 0, 100, 100 ), false );
this.setGraphicContext( graphicContext );
this.setShape( shape );
}
/**
* Description of the Method
*
* @param g Description of the Parameter
*/
public void paintComponent( Graphics g )
{
super.paintComponent( g );
}
public Color getBackgroundFillColor()
{
return colorB ;
}
public void setBackgroundFillColor( Color backgroundFillColor )
{colorB = backgroundFillColor ;
this.repaint();
}
public String getName()
{
return toString();
}
public void setName( String name ) { }
Tks.Ruby
 
Author
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !
One possibility would be IBM Visual Age for Java. It has a visual composition editor for JavaBeans components.
Better say: It had. IBM strategy swapped to the Eclipse Workbench (WebSphere Studio AppDev), no more VA Java any longer (Version 4.0 in 2001 was the last release).
Greetings from Hamburg,
Stefan
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!