Skip to content
Advertisement

Is there a way to hide all elements in JFrame

I’m currently working on Java application and I’m using JFrame and inside of JFrame i have some buttons, labels and textfields. I’m in need of hiding all the elements that are in JFrame. I don’t need to hide JFrame itself, only the elements in it so I can display some others. Is there a way to hide them all without

JAVA command shows nothing in a command prompt

My question is very simple but I still cannot find out what’s the problem. When I input java, java -version or javac -version in a command prompt nothing is shown at all: neither an “unknown file” error nor the result. That’s how it looks like: I used standard Java installer, PATH and JAVA_HOME variables were renewed. I’ve set JDKs several

Filtering out formatting tags from JSoup selectors

JSoup here. I have the following HTML I’m trying to parse: Unfortunately its actually slightly malformed (missing some closing tags, opening and closing tags on <b> and <u> are out of order, etc.) but I’m hoping JSoup can handle that. I don’t have control over the HTML. I have the following Java model/POJO: I am trying to get JSoup to

How to make a custom-shaped Recycler View?

I need to make a recycler view whose elements will wrap around the ImageView (like this: https://imgur.com/a/7NpCHri). Is there a way to implement this? Answer You can create adapter with GridLayoutManager and for items with indexes 6, 7, 10, 11 make empty transparent views. But as it were said in comment it is not appropriate use of RV. Maybe it

Current time API / Exact time detection via API

Today, for the first time, I am trying to get the right time through the API. I don’t understand‚ please help. I am using the http://worldtimeapi.org/api/timezone/ site to determine the exact time. But I didn’t understand how to use it in JAVA and what codes to write. Please send me a snippet of code or codes. I don’t know what

Advertisement