• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Kent Ong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Basically what I wish to know is What is "This" box made of?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Carey Brown
Saloon Keeper
Posts: 3309
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Simon Roberts
Author
Ranch Hand
Posts: 182
9
Java Linux Netbeans IDE Scala Ubuntu
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to research Servlets and JSP.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!