• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

What component can i use to insert text, image, links, etc. in it?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there! First of all thanks for reading this!
I'm currently working on a school project which required me to build a simple forum.
I need help on figuring out how to create the forum post and it's messages.

I'm very very bad at Java fyi, and your help is greatly need. I wish to know what component(or whatever you call it) like label, textfield, etc. allow me to place things such as text, image, links,etc in it.
Your reply is greatly appreciated!
 
Kent Ong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Basically what I wish to know is What is "This" box made of?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch, Kent!

Is your forum software a web application? What technology is used for the user interface, is it HTML, CSS and JavaScript, or something else?

Note that JavaScript, the language that's used everywhere in browsers on the Web, is not the same thing as Java (JavaScript and Java are two different programming languages which, despite the names, don't have a lot to do with each other). We do have forums on HTML, CSS and JavaScript as well here on CodeRanch (not just about Java).
 
Kent Ong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey there! Thanks for Replying!

I'm using Java, not js. My program UI had not been done yet but it's just build of NetBeans. I'm not using any form of jsp, JForum or what so ever as I find them really difficult to understand or even make use of.
So I'm trying to build the Forum from the Sketch. I know some basic Web programming (HTML,CSS,PHP,JS) but java not at all.
I'm not sure if it's consider a Web Application by the way, as I've mention, I don't have many knowledge in this field.
I'm also using MySQL.
 
Saloon Keeper
Posts: 10930
87
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows ChatGPT
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kent Ong wrote:Basically what I wish to know is What is "This" box made of?


Did you mean for "This" to come across as a link? It doesn't. We don't know what "This" is.

To me, "simple forum", means just plain text. That seems like something to tackle first before adding images, links, and formatting.
 
Kent Ong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey thanks for replying! "This" as in this box which are holding these line of text! I want to know what are this container made of! I know container with text can be done easily with many component such as label, panel, text field, etc. Or should I move this post to java in general instead?
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You seem to be barking up the wrong tree. If this is something that will be on the web, then regardless of whether Java is used as a backend or not, the display will be created with HTML.
 
Author
Posts: 310
12
Scala IntelliJ IDE Netbeans IDE Python Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm unclear what you're really trying to do (in the same way as other commentators) but if you use a JEditorPane in a regular Swing layout, it's capable of rendering text, with styling, and graphics. Actually, you can pretty much turn it into a web-browser if you wanted to, but that's not the point in this case, I think you just need its ability to present text and images in a left-to-right-wrap-at-line-ends type flow.

HTH
Simon
 
Kent Ong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey thanks for the reply! This sort of cleared my thoughts, I was initially thinking of building the forum as a java application just for the sick of su biting assignment. May I know is it possible to html as the interface and java as backend? How can I achieve this? Does it behave similarly like php?
Your reply is greatly appreciated.
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You want to research Servlets and JSP.
 
Are we home yet? Wait, did we forget the tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic