I want to create a java pane with a canvas on the left and column of other components on the right. I did this long ago but lost that code. Can anyone point me in the right direction to do this?
dgrovespdxdgpdx 0 Newbie Poster
Recommended Answers
Jump to PostYou have options here:
Populate the JPane with two JPanes left and right (use the default FlowLayout) then populate the left pane with the canvas and right pane with a vertical stack of components (use a BoxLayout or a GridLayout).
or
GridBagLayout will do it all. Steep learning curve but …
Jump to PostAll depends on what you need it for...
A web application needs a server to run on, lots more infrastructure than a standalone desktop application.
Of course if you're just interested in a single static page, then yeah, it might be easier to make a rough outline in html and …
All 6 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
dgrovespdxdgpdx commented: Many thanks for the response. I will try GridBagLayout. +0
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
dgrovespdxdgpdx commented: Thanks again. I will check it out. I need all the help I can get. +0
dgrovespdxdgpdx 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
dgrovespdxdgpdx commented: True, and to do that you need a graphics context. Trying to do that is when I get the error. Is there a way to post the code? +0
dgrovespdxdgpdx 0 Newbie Poster
jwenting 1,905 duckman Team Colleague
dgrovespdxdgpdx commented: I am interested in single page apps and HTML/Javascript seem better suited for this than Java. Not everyone has Java on their computer,.. +0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.