Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
Read the question carefully
Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
Hey guys! I want to develop a program on Java for desktop (Windows and MacOS). My app is on engineering calculations in the construction. I want to hire a company on an outsource basis but I really don’t know how to choose and how to work with them. Maybe you know? I am just trying to get into it. I have no experience and now I am just collecting the info. Maybe you can help?
Regardless of who you find, the chances are very high you will get ripped off if you have "no experience"; either intentionally or through misunderstandings. In particular, beware of the "up front" payment. Ask to see the "work" (and retain a copy) before paying anything, or you will be sorry.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
i am automating a login procedure that involves email validation which means there can be 15 minutes till i even get to the start of the automation. so it would be nice to pick up where i left off. how exactly would i do that? i tried
Yes, the formatting is correct, thank you. However, it is no good just dumping the code with a simple, "I want to do ..." statement. You need to explain in proper detail what is not working and where in the code the problem occurs.
I'm working on a Java Swing application that will allow users to add index cards to a virtual corkboard. One of the big functionalities I want is for the user to be able to drag and drop cards to reorder them. I don't want to simply position cards at the exact X and Y mouse coordinates where the user releases the mouse button, getting that to work would be relatively trivial. I want the cards to "snap" into place, in a FlowLayout.
Problem is I'm not sure how to accomplish that with the typical MouseListener and MouseMotionListener. Right now my code is organized into a sort of MVC architecture. Here is my code on Github. Everything is just being committed to master for now.
I'm working with a sort of loose MVC type architecture. I have a MainController that has all other child controllers as it's properties. All the other child controllers also take the MainController instance in their constructors. The MainController basically controls the main JFrame of the app and the menu bar. It also acts as a hook for all of the other controllers to communicate with each other.
The ProjectController controls mouse and key events on the "corkboard" area.
The AddCardController is pretty simple, just controls the Add a card window.
Here's where it gets tricky:
The CardController controls mouse events on a particular card. Each card has an instance of the Card model, and it's own CardController, and it's own CardTemplate in the views folder. So every card the user creates is basically an instance of CardController. All the CardControllers are stored in an ArrayList on the MainController. And because every card on the board has it's own CardController, the EditCardController is created inside CardController, so those two are tied together.
This kind of works okay, but I have no idea how to get drag and drop with snapping to work with this architecture (or any architecture for that matter). Each CardTemplate -which is kind of just a component, it extends JPanel but I put it in the views folder for some reason (probably need to change that)- has it's CardController as it's MouseListener.
Can anyone give me advice on how to organize my code so that I can do dragging and dropping with snapping? Should I even hope to use a MouseListener or MouseMotionListener for this?
A SMS API is well-defined software interface which enables code to send short messages via a SMS Gateway.As the infrastructures for SMS communications and the internet are mostly divided, SMS APIs are often used to 'bridge the gap' between telecommunications carrier networks and the wider web. SMS APIs are used to allow web applications to easily send and receive text messages through logic written for standard web frameworks
Please don't repost if your question does not appear immediately: all of these went to moderation and required a human being to review them for publication. In order to prevent you being kicked off as a spammer, both had to be accepted, and then I have to clean up the spares. Have a little patience, please!
I've deleted the other version.
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
I know how to write code in Java (basic and intermediate level). However, I have very little experience in looking at other peoples' code (experts) and understanding those. I know this is very much required in the industry. I would like to understand how architectures, e.g. MVC and design patterns are implemented by experts.
Therefore, I am asking your recommendations for existing GITHUB projects for learning. I would like to look at a project with the following properties:
1. Built with CORE java. It should have some sort of GUI (maybe JavaFX, which I know isn't CORE java).
2. Followed some architecture and design patterns.
3. It can be a game for example.
4. It should have at least some documentation.
I have searched GUTHUB projects and too much choice has overwhelmed me. Please provide your valuable suggestion so that I can at least start somewhere.
Last Visit: 19-Oct-19 9:40 Last Update: 19-Oct-19 9:40